]> 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:15:31 +0000 (13:15 -0700)
committerNed Deily <nad@acm.org>
Sat, 15 Mar 2014 20:15:31 +0000 (13:15 -0700)
new redirect of http://www.python.org/ to https://www.python.org.

Lib/test/test_urllibnet.py
Misc/NEWS

index 38afb69250c68e8180031ac9a155752891e9967a..31b61f1e51fa24a6da927ea8c2dbdc9dd37989b2 100644 (file)
@@ -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)
index 253c850b5ac2764fee3d6ebb7f30cfbbd78828cc..2b455e79f8be90a8308316bd00ca90e632f6ebe2 100644 (file)
--- 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?
 ===========================