restore tearDown/beforeTearDown/beforeClose behaviour lostto backportUnittest.TestCase

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31318 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c6b88c6c
......@@ -962,6 +962,14 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase):
% title) # run_unit_test depends on this string.
raise
def tearDown(self):
'''Tears down the fixture. Do not override,
use the hooks instead.
'''
# avoid backportUnittest.TestCase.tearDown inheritance and still allow
# "runUnitTest --save" to monkey-patch PortalTestCase.tearDown
return PortalTestCase.tearDown(self)
def beforeClose(self):
PortalTestCase.beforeClose(self)
try:
......
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