diff options
author | Fred Drake <fdrake@acm.org> | 2003-04-11 15:14:05 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-04-11 15:14:05 (GMT) |
commit | 126f2b76b9413d861f3a8f7d70af67a634982e31 (patch) | |
tree | 6a3c61563964374daec5b852dac72234606b450f | |
parent | 4ec6824896e22637a421cb99fdde694f0a1cdbc5 (diff) | |
download | cpython-126f2b76b9413d861f3a8f7d70af67a634982e31.zip cpython-126f2b76b9413d861f3a8f7d70af67a634982e31.tar.gz cpython-126f2b76b9413d861f3a8f7d70af67a634982e31.tar.bz2 |
Avoid creating one of the TestSuite objects.
-rw-r--r-- | Lib/test/test_timeout.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_timeout.py b/Lib/test/test_timeout.py index 07c5372..d68484e 100644 --- a/Lib/test/test_timeout.py +++ b/Lib/test/test_timeout.py @@ -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) |