[Python-checkins] cpython (3.2): Closes issue11563 (original) (raw)

[Python-checkins] cpython (3.2): Closes issue11563 - test_urllibnet ResourceWarning. Patch by Jeff McNeil.

senthil.kumaran python-checkins at python.org
Sat Mar 19 10:47:38 CET 2011


http://hg.python.org/cpython/rev/edc3d3b07435 changeset: 68675:edc3d3b07435 branch: 3.2 parent: 68665:f832ca852329 user: Senthil Kumaran <orsenthil at gmail.com> date: Sat Mar 19 17:25:27 2011 +0800 summary: Closes issue11563 - test_urllibnet ResourceWarning. Patch by Jeff McNeil.

files: Lib/test/test_urllib.py Lib/urllib/request.py

diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py --- a/Lib/test/test_urllib.py +++ b/Lib/test/test_urllib.py @@ -91,7 +91,7 @@ "did not return the expected text")

 def test_close(self):

@@ -174,6 +174,11 @@ finally: self.unfakehttp()

diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -1657,6 +1657,12 @@ headers["Authorization"] = "Basic %s" % auth if realhost: headers["Host"] = realhost +

-- Repository URL: http://hg.python.org/cpython



More information about the Python-checkins mailing list