diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-11-05 18:10:16 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-11-05 18:10:16 (GMT) |
commit | 81d9feee8d2bd85d2f61b99d5a4cf9a3251409de (patch) | |
tree | 9a19dfd99e7e34fe96034028fa0233ea2dbfdda9 | |
parent | 141579c8868c1ed2482c2a485e7c6367724cb505 (diff) | |
parent | b811a978597e02a9852030ee7fac49aece40512f (diff) | |
download | cpython-81d9feee8d2bd85d2f61b99d5a4cf9a3251409de.zip cpython-81d9feee8d2bd85d2f61b99d5a4cf9a3251409de.tar.gz cpython-81d9feee8d2bd85d2f61b99d5a4cf9a3251409de.tar.bz2 |
merge 3.4
-rw-r--r-- | Lib/test/test_urllib2net.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py index 2b65e8f..fc21408 100644 --- a/Lib/test/test_urllib2net.py +++ b/Lib/test/test_urllib2net.py @@ -8,13 +8,6 @@ import urllib.error import urllib.request import sys -try: - import ssl -except ImportError: - ssl = None - -requires_ssl = unittest.skipIf(ssl is None, "SSL not supported") - support.requires("network") TIMEOUT = 60 # seconds @@ -167,14 +160,13 @@ class OtherNetworkTests(unittest.TestCase): self.assertEqual(res.geturl(), "http://www.pythontest.net/index.html#frag") - @requires_ssl def test_redirect_url_withfrag(self): - redirect_url_with_frag = "http://bit.ly/1iSHToT" + redirect_url_with_frag = "http://www.pythontest.net/redir/with_frag/" with support.transient_internet(redirect_url_with_frag): req = urllib.request.Request(redirect_url_with_frag) res = urllib.request.urlopen(req) self.assertEqual(res.geturl(), - "https://docs.python.org/3.4/glossary.html#term-global-interpreter-lock") + "http://www.pythontest.net/elsewhere/#frag") def test_custom_headers(self): url = "http://www.example.com" |