[Python-checkins] cpython (2.7): Issue #20939: Fix test_geturl failure in test_urllibnet due to

ned.deily python-checkins at python.org
Sat Mar 15 21:19:53 CET 2014


http://hg.python.org/cpython/rev/9b02f23bc129
changeset: 89673:9b02f23bc129
branch: 2.7
parent: 89671:71da05fa2d8a
user: Ned Deily <nad at acm.org>
date: Sat Mar 15 13:14:15 2014 -0700
summary:
 Issue #20939: Fix test_geturl failure in test_urllibnet due to
new redirect of http://www.python.org/ to https://www.python.org.
files:
 Lib/test/test_urllibnet.py | 2 +-
 Misc/NEWS | 3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py
--- a/Lib/test/test_urllibnet.py
+++ b/Lib/test/test_urllibnet.py
@@ -92,7 +92,7 @@
 
 def test_geturl(self):
 # Make sure same URL as opened is returned by geturl.
- URL = "http://www.python.org/"
+ URL = "https://www.python.org/"
 open_url = self.urlopen(URL)
 try:
 gotten_url = open_url.geturl()
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -316,6 +316,9 @@
 
 - Issue #20605: Make test_socket getaddrinfo OS X segfault test more robust.
 
+- Issue #20939: Fix test_geturl failure in test_urllibnet due to
+ new redirect of http://www.python.org/ to https://www.python.org.
+
 Documentation
 -------------
 
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /