]> granicus.if.org Git - python/commitdiff
Avoid creating one of the TestSuite objects.
authorFred Drake <fdrake@acm.org>
Fri, 11 Apr 2003 15:14:05 +0000 (15:14 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 11 Apr 2003 15:14:05 +0000 (15:14 +0000)
Lib/test/test_timeout.py

index 07c5372eea15808debc443765c3077b67e374af3..d68484effd002e8854deb92ca64bf1dc35f40464 100644 (file)
@@ -187,8 +187,7 @@ class TimeoutTestCase(unittest.TestCase):
 def test_main():
     test_support.requires('network')
 
-    suite = unittest.TestSuite()
-    suite.addTest(unittest.makeSuite(CreationTestCase))
+    suite = unittest.makeSuite(CreationTestCase)
     suite.addTest(unittest.makeSuite(TimeoutTestCase))
     test_support.run_suite(suite)