summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2014-04-15 01:32:13 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2014-04-15 01:32:13 (GMT)
commitbfcc5fef9ba40c168bc7df1578a63f966f23fa5b (patch)
treefdf5c915b44738f3bffa758765e8980430de9b23
parent1976d9bf6d5525821e1cb005a05acbf55a340dfa (diff)
parentcfdd0161ac72f9a6be00581eaef160791072c6ad (diff)
downloadcpython-bfcc5fef9ba40c168bc7df1578a63f966f23fa5b.zip
cpython-bfcc5fef9ba40c168bc7df1578a63f966f23fa5b.tar.gz
cpython-bfcc5fef9ba40c168bc7df1578a63f966f23fa5b.tar.bz2
merge 3.4
-rw-r--r--Lib/test/test_urllibnet.py10
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()