summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2012-10-21 17:37:43 +0200
committerNadeem Vawda <nadeem.vawda@gmail.com>2012-10-21 17:37:43 +0200
commit4c0e413739c6700426eebb94378d4734e16ed269 (patch)
treec94fca39cee023aca411a9a3f51aa276a060d73a /Lib/test
parent061ee174fe74f5d07b48dc373b3c22632427547b (diff)
downloadcpython-4c0e413739c6700426eebb94378d4734e16ed269.tar.gz
Issue #12692: Fix resource leak in urllib.request.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_urllib2.py1
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):