mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Update various test modules to use unittest.main() for test discovery
instead of manually listing tests for test.support.run_unittest().
This commit is contained in:
parent
e382b5868a
commit
3e9a9ae09d
18 changed files with 24 additions and 108 deletions
|
@ -338,13 +338,6 @@ class TimeoutTest(unittest.TestCase):
|
|||
self.assertEqual(u.fp.fp.raw._sock.gettimeout(), 60)
|
||||
|
||||
|
||||
def test_main():
|
||||
support.requires("network")
|
||||
support.run_unittest(AuthTests,
|
||||
OtherNetworkTests,
|
||||
CloseSocketTest,
|
||||
TimeoutTest,
|
||||
)
|
||||
|
||||
if __name__ == "__main__":
|
||||
test_main()
|
||||
support.requires("network")
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue