diff options
author | Brett Cannon <brett@python.org> | 2013-06-13 01:25:59 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-06-13 01:25:59 (GMT) |
commit | 3e9a9ae09d6fc9169b01cba3efd1ae03ab40b237 (patch) | |
tree | 5ef61b4c8c1b5bfaaafb1e1e0cd03afe7971caf7 /Lib/test/test_urllib2net.py | |
parent | e382b5868a4daca614589270b6b3fe5c50059986 (diff) | |
download | cpython-3e9a9ae09d6fc9169b01cba3efd1ae03ab40b237.zip cpython-3e9a9ae09d6fc9169b01cba3efd1ae03ab40b237.tar.gz cpython-3e9a9ae09d6fc9169b01cba3efd1ae03ab40b237.tar.bz2 |
Update various test modules to use unittest.main() for test discovery
instead of manually listing tests for test.support.run_unittest().
Diffstat (limited to 'Lib/test/test_urllib2net.py')
-rw-r--r-- | Lib/test/test_urllib2net.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py index b674be0..fba3cea 100644 --- a/Lib/test/test_urllib2net.py +++ b/Lib/test/test_urllib2net.py @@ -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() |