]> granicus.if.org Git - python/commitdiff
Issue #20939: Fix test_geturl failure in test_urllibnet due to
authorNed Deily <nad@acm.org>
Sat, 15 Mar 2014 20:14:15 +0000 (13:14 -0700)
committerNed Deily <nad@acm.org>
Sat, 15 Mar 2014 20:14:15 +0000 (13:14 -0700)
new redirect of http://www.python.org/ to https://www.python.org.

Lib/test/test_urllibnet.py
Misc/NEWS

index 7c05b0977b133c4212903093161aa72a4ba07d41..df6d86af0c329a2370359e502493bfa5b36b92d2 100644 (file)
@@ -92,7 +92,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/"
         open_url = self.urlopen(URL)
         try:
             gotten_url = open_url.geturl()
index 4e915f5f9ebccd713f0f5f80c3ef10dc19cc38e1..99a6cf15356ff75c4dfe385483ed3e977f93d397 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -316,6 +316,9 @@ Tests
 
 - 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
 -------------