use https docs url (#21115)
This commit is contained in:
parent
8aef28a5d0
commit
b4be376d16
|
@ -156,12 +156,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_custom_headers(self):
|
def test_custom_headers(self):
|
||||||
url = "http://www.example.com"
|
url = "http://www.example.com"
|
||||||
|
|
Loading…
Reference in New Issue