Avoid creating one of the TestSuite objects.
This commit is contained in:
parent
4ec6824896
commit
126f2b76b9
|
@ -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…
Reference in New Issue