Issue #19013: add unittest.main() epilogs to unittest's own test modules

This commit is contained in:
Antoine Pitrou 2013-09-13 23:52:46 +02:00
parent 87456e53a8
commit 1d7c8c9a00
8 changed files with 29 additions and 0 deletions

View file

@ -339,3 +339,7 @@ class Test_TextTestRunner(unittest.TestCase):
f = io.StringIO()
runner = unittest.TextTestRunner(f)
self.assertTrue(runner.stream.stream is f)
if __name__ == "__main__":
unittest.main()