summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-01-25 22:27:21 -0500
committerBrett Cannon <brett@python.org>2013-01-25 22:27:21 -0500
commit80512de43b83168bb920504f4d809fa70b17548b (patch)
tree644be874e608c9d344c72525b9fad78a29eaf0c7
parent570c5b235451412ac55ce211813358b50d0e070b (diff)
downloadcpython-git-80512de43b83168bb920504f4d809fa70b17548b.tar.gz
Skip a test unless the network resource is available.
-rw-r--r--Lib/test/test_urllib2.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 22e553fa77..4fc8c4307e 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -1445,6 +1445,8 @@ class MiscTests(unittest.TestCase):
self.opener_has_handler(o, MyHTTPHandler)
self.opener_has_handler(o, MyOtherHTTPHandler)
+ @unittest.skipUnless(support.is_resource_enabled('network'),
+ 'test requires network access')
def test_issue16464(self):
opener = urllib.request.build_opener()
request = urllib.request.Request("http://www.python.org/~jeremy/")