summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/test/test_suite.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/unittest/test/test_suite.py')
-rw-r--r--Lib/unittest/test/test_suite.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/unittest/test/test_suite.py b/Lib/unittest/test/test_suite.py
index fa32247..2db978d 100644
--- a/Lib/unittest/test/test_suite.py
+++ b/Lib/unittest/test/test_suite.py
@@ -353,11 +353,16 @@ class Test_TestSuite(unittest.TestCase, TestEquality):
unittest.TestSuite.__call__(self, *args, **kw)
suite = MySuite()
+ result = unittest.TestResult()
wrapper = unittest.TestSuite()
wrapper.addTest(suite)
- wrapper(unittest.TestResult())
+ wrapper(result)
self.assertTrue(suite.called)
+ # reusing results should be permitted even if abominable
+ self.assertFalse(result._testRunEntered)
+
+
if __name__ == '__main__':
unittest.main()