summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2net.py
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2013-12-26 16:37:11 (GMT)
committerdoko@ubuntu.com <doko@ubuntu.com>2013-12-26 16:37:11 (GMT)
commite575148cc23283f72aeeb0bff4a9343ce738aa92 (patch)
tree31a54b94db8463f931133214960f9f0ae72a6b20 /Lib/test/test_urllib2net.py
parentbb4b7c12fa63794743b3448184f7ba13266a4834 (diff)
downloadcpython-e575148cc23283f72aeeb0bff4a9343ce738aa92.zip
cpython-e575148cc23283f72aeeb0bff4a9343ce738aa92.tar.gz
cpython-e575148cc23283f72aeeb0bff4a9343ce738aa92.tar.bz2
- Issue #20070: Don't run test_urllib2net when network resources are not
enabled.
Diffstat (limited to 'Lib/test/test_urllib2net.py')
-rw-r--r--Lib/test/test_urllib2net.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py
index fba3cea..ab638ea 100644
--- a/Lib/test/test_urllib2net.py
+++ b/Lib/test/test_urllib2net.py
@@ -14,6 +14,8 @@ try:
except ImportError:
ssl = None
+support.requires("network")
+
TIMEOUT = 60 # seconds
@@ -339,5 +341,4 @@ class TimeoutTest(unittest.TestCase):
if __name__ == "__main__":
- support.requires("network")
unittest.main()