Commit b454742c authored by Ned Deily's avatar Ned Deily

Issue #20939: Fix test_geturl failure in test_urllibnet due to

new redirect of http://www.python.org/ to https://www.python.org.
parent 51281736
...@@ -80,7 +80,7 @@ class urlopenNetworkTests(unittest.TestCase): ...@@ -80,7 +80,7 @@ class urlopenNetworkTests(unittest.TestCase):
def test_geturl(self): def test_geturl(self):
# Make sure same URL as opened is returned by geturl. # Make sure same URL as opened is returned by geturl.
URL = "http://www.python.org/" URL = "https://www.python.org/"
with self.urlopen(URL) as open_url: with self.urlopen(URL) as open_url:
gotten_url = open_url.geturl() gotten_url = open_url.geturl()
self.assertEqual(gotten_url, URL) self.assertEqual(gotten_url, URL)
......
...@@ -27,6 +27,12 @@ Library ...@@ -27,6 +27,12 @@ Library
as documented. The pattern and source keyword parameters are left as as documented. The pattern and source keyword parameters are left as
deprecated aliases. deprecated aliases.
Tests
-----
- Issue #20939: Fix test_geturl failure in test_urllibnet due to
new redirect of http://www.python.org/ to https://www.python.org.
What's New in Python 3.3.5? What's New in Python 3.3.5?
=========================== ===========================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment