summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2014-03-15 20:15:31 (GMT)
committerNed Deily <nad@acm.org>2014-03-15 20:15:31 (GMT)
commitb454742c64872fdb41d9c13a485711fbd849a4c9 (patch)
tree1833006bda07ff7f67fbf3e588c63e31ece832e4
parent51281736d90e59d7b08cae2f2244005c918cb1c1 (diff)
downloadcpython-b454742c64872fdb41d9c13a485711fbd849a4c9.zip
cpython-b454742c64872fdb41d9c13a485711fbd849a4c9.tar.gz
cpython-b454742c64872fdb41d9c13a485711fbd849a4c9.tar.bz2
Issue #20939: Fix test_geturl failure in test_urllibnet due to
new redirect of http://www.python.org/ to https://www.python.org.
-rw-r--r--Lib/test/test_urllibnet.py2
-rw-r--r--Misc/NEWS6
2 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py
index 38afb69..31b61f1 100644
--- a/Lib/test/test_urllibnet.py
+++ b/Lib/test/test_urllibnet.py
@@ -80,7 +80,7 @@ class urlopenNetworkTests(unittest.TestCase):
def test_geturl(self):
# 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:
gotten_url = open_url.geturl()
self.assertEqual(gotten_url, URL)
diff --git a/Misc/NEWS b/Misc/NEWS
index 253c850..2b455e7 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -27,6 +27,12 @@ Library
as documented. The pattern and source keyword parameters are left as
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?
===========================