mirror of https://github.com/python/cpython.git
Invoke test_urllibnet tests using unittest.main function
This commit is contained in:
parent
fe0e1082aa
commit
cfdd0161ac
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue