mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Invoke test_urllibnet tests using unittest.main function
This commit is contained in:
parent
fe0e1082aa
commit
cfdd0161ac
1 changed files with 3 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue