Allow getSite() or getSiteManager() to be used during beforeTearDown on Zope 2.12

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33107 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5592f982
...@@ -1028,8 +1028,8 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase): ...@@ -1028,8 +1028,8 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase):
'''Tears down the fixture. Do not override, '''Tears down the fixture. Do not override,
use the hooks instead. use the hooks instead.
''' '''
PortalTestCase.tearDown(self)
setSite() # undo site configuration from self.getPortal() setSite() # undo site configuration from self.getPortal()
return PortalTestCase.tearDown(self)
def beforeClose(self): def beforeClose(self):
PortalTestCase.beforeClose(self) PortalTestCase.beforeClose(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment