Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 126f2b7

Browse files
committed
Avoid creating one of the TestSuite objects.
1 parent 4ec6824 commit 126f2b7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/test/test_timeout.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ def testSendall(self):
187187
def test_main():
188188
test_support.requires('network')
189189

190-
suite = unittest.TestSuite()
191-
suite.addTest(unittest.makeSuite(CreationTestCase))
190+
suite = unittest.makeSuite(CreationTestCase)
192191
suite.addTest(unittest.makeSuite(TimeoutTestCase))
193192
test_support.run_suite(suite)
194193

0 commit comments

Comments
 (0)