Commit 33958b87 authored by Michael Foord's avatar Michael Foord

Fix issue with nested test suites debug method and module setups. (unittest)

parent 83d3576a
......@@ -112,7 +112,7 @@ class TestSuite(BaseTestSuite):
continue
if hasattr(test, '_wrapped_run'):
test._wrapped_run(result)
test._wrapped_run(result, debug)
elif not debug:
test(result)
else:
......
......@@ -495,7 +495,9 @@ class TestSetups(unittest.TestCase):
Test.__module__ = 'Module'
sys.modules['Module'] = Module
suite = unittest.defaultTestLoader.loadTestsFromTestCase(Test)
_suite = unittest.defaultTestLoader.loadTestsFromTestCase(Test)
suite = unittest.TestSuite()
suite.addTest(_suite)
messages = ('setUpModule', 'tearDownModule', 'setUpClass', 'tearDownClass', 'test_something')
for phase, msg in enumerate(messages):
......
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