projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe0e108
)
Invoke test_urllibnet tests using unittest.main function
author
Senthil Kumaran
<senthil@uthcode.com>
Tue, 15 Apr 2014 01:31:41 +0000
(21:31 -0400)
committer
Senthil Kumaran
<senthil@uthcode.com>
Tue, 15 Apr 2014 01:31:41 +0000
(21:31 -0400)
Lib/test/test_urllibnet.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_urllibnet.py
b/Lib/test/test_urllibnet.py
index b66202c1f8ea9c17c487906b54142371a0aaee10..4c8ba2d22c3de281af38c8d954922f20ae52a9ad 100644
(file)
--- 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()