diff options
author | Brett Cannon <brett@python.org> | 2013-01-26 03:27:21 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2013-01-26 03:27:21 (GMT) |
commit | 80512de43b83168bb920504f4d809fa70b17548b (patch) | |
tree | 644be874e608c9d344c72525b9fad78a29eaf0c7 /Lib/test/test_urllib2.py | |
parent | 570c5b235451412ac55ce211813358b50d0e070b (diff) | |
download | cpython-80512de43b83168bb920504f4d809fa70b17548b.zip cpython-80512de43b83168bb920504f4d809fa70b17548b.tar.gz cpython-80512de43b83168bb920504f4d809fa70b17548b.tar.bz2 |
Skip a test unless the network resource is available.
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r-- | Lib/test/test_urllib2.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 22e553f..4fc8c43 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/") |