diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-10-21 17:37:43 +0200 |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-10-21 17:37:43 +0200 |
commit | 4c0e413739c6700426eebb94378d4734e16ed269 (patch) | |
tree | c94fca39cee023aca411a9a3f51aa276a060d73a /Lib/test | |
parent | 061ee174fe74f5d07b48dc373b3c22632427547b (diff) | |
download | cpython-4c0e413739c6700426eebb94378d4734e16ed269.tar.gz |
Issue #12692: Fix resource leak in urllib.request.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_urllib2.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 7ae155331e..00ee669874 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -302,6 +302,7 @@ class MockHTTPClass: self.req_headers = [] self.data = None self.raise_on_endheaders = False + self.sock = None self._tunnel_headers = {} def __call__(self, host, timeout=socket._GLOBAL_DEFAULT_TIMEOUT): |