Invoke test_urllibnet tests using unittest.main function

This commit is contained in:
Senthil Kumaran 2014-04-14 21:31:41 -04:00
parent fe0e1082aa
commit cfdd0161ac
1 changed files with 3 additions and 7 deletions

View File

@ -10,6 +10,8 @@
import time
support.requires('network')
class URLTimeoutTest(unittest.TestCase):
# XXX this test doesn't seem to test anything useful.
@ -206,11 +208,5 @@ def recording_reporthook(blocks, block_size, total_size):
" >= 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()