diff options
| author | Senthil Kumaran <senthil@uthcode.com> | 2014-04-15 01:32:13 (GMT) |
|---|---|---|
| committer | Senthil Kumaran <senthil@uthcode.com> | 2014-04-15 01:32:13 (GMT) |
| commit | bfcc5fef9ba40c168bc7df1578a63f966f23fa5b (patch) | |
| tree | fdf5c915b44738f3bffa758765e8980430de9b23 /Lib/test/test_urllibnet.py | |
| parent | 1976d9bf6d5525821e1cb005a05acbf55a340dfa (diff) | |
| parent | cfdd0161ac72f9a6be00581eaef160791072c6ad (diff) | |
| download | cpython-bfcc5fef9ba40c168bc7df1578a63f966f23fa5b.zip cpython-bfcc5fef9ba40c168bc7df1578a63f966f23fa5b.tar.gz cpython-bfcc5fef9ba40c168bc7df1578a63f966f23fa5b.tar.bz2 | |
merge 3.4
Diffstat (limited to 'Lib/test/test_urllibnet.py')
| -rw-r--r-- | Lib/test/test_urllibnet.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py index b66202c..4c8ba2d 100644 --- a/Lib/test/test_urllibnet.py +++ b/Lib/test/test_urllibnet.py @@ -10,6 +10,8 @@ import email.message import time +support.requires('network') + class URLTimeoutTest(unittest.TestCase): # XXX this test doesn't seem to test anything useful. @@ -206,11 +208,5 @@ class urlretrieveNetworkTests(unittest.TestCase): " >= total size in %s" % records_repr) -def test_main(): - support.requires('network') - support.run_unittest(URLTimeoutTest, - urlopenNetworkTests, - urlretrieveNetworkTests) - if __name__ == "__main__": - test_main() + unittest.main() |
