This commit is contained in:
Benjamin Peterson 2014-03-31 13:47:04 -04:00
commit 1b90f8e0e9
1 changed files with 2 additions and 2 deletions

View File

@ -157,12 +157,12 @@ class OtherNetworkTests(unittest.TestCase):
## self._test_urls(urls, self._extra_handlers()+[bauth, dauth]) ## self._test_urls(urls, self._extra_handlers()+[bauth, dauth])
def test_urlwithfrag(self): def test_urlwithfrag(self):
urlwith_frag = "http://docs.python.org/2/glossary.html#glossary" urlwith_frag = "https://docs.python.org/2/glossary.html#glossary"
with support.transient_internet(urlwith_frag): with support.transient_internet(urlwith_frag):
req = urllib.request.Request(urlwith_frag) req = urllib.request.Request(urlwith_frag)
res = urllib.request.urlopen(req) res = urllib.request.urlopen(req)
self.assertEqual(res.geturl(), self.assertEqual(res.geturl(),
"http://docs.python.org/2/glossary.html#glossary") "https://docs.python.org/2/glossary.html#glossary")
def test_redirect_url_withfrag(self): def test_redirect_url_withfrag(self):
redirect_url_with_frag = "http://bitly.com/urllibredirecttest" redirect_url_with_frag = "http://bitly.com/urllibredirecttest"