Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b454742

Browse files
committed
Issue #20939: Fix test_geturl failure in test_urllibnet due to
new redirect of http://www.python.org/ to https://www.python.org.
1 parent 5128173 commit b454742

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Lib/test/test_urllibnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def test_info(self):
8080

8181
def test_geturl(self):
8282
# Make sure same URL as opened is returned by geturl.
83-
URL = "http://www.python.org/"
83+
URL = "https://www.python.org/"
8484
with self.urlopen(URL) as open_url:
8585
gotten_url = open_url.geturl()
8686
self.assertEqual(gotten_url, URL)

Misc/NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ Library
2727
as documented. The pattern and source keyword parameters are left as
2828
deprecated aliases.
2929

30+
Tests
31+
-----
32+
33+
- Issue #20939: Fix test_geturl failure in test_urllibnet due to
34+
new redirect of http://www.python.org/ to https://www.python.org.
35+
3036

3137
What's New in Python 3.3.5?
3238
===========================

0 commit comments

Comments
 (0)