summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2014-04-15 01:31:41 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2014-04-15 01:31:41 (GMT)
commitcfdd0161ac72f9a6be00581eaef160791072c6ad (patch)
treedf4379e126042c4943ab2a6e4d6ebee38c75b29f /Lib/test
parentfe0e1082aa3e6b25990564652b052f0dcdad7445 (diff)
downloadcpython-cfdd0161ac72f9a6be00581eaef160791072c6ad.zip
cpython-cfdd0161ac72f9a6be00581eaef160791072c6ad.tar.gz
cpython-cfdd0161ac72f9a6be00581eaef160791072c6ad.tar.bz2
Invoke test_urllibnet tests using unittest.main function
Diffstat (limited to 'Lib/test')
-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()