mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Avoid creating one of the TestSuite objects.
This commit is contained in:
parent
4ec6824896
commit
126f2b76b9
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue