summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2.py
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2012-10-21 15:37:43 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2012-10-21 15:37:43 (GMT)
commitbd26b5463eb4547a2c679e562180364b0767cf32 (patch)
treeb1fa315fc81dc57e52d772912cbbfcee721dc112 /Lib/test/test_urllib2.py
parentca4a52513bf7d08d4ba26b18d9cba4afd5c02176 (diff)
downloadcpython-bd26b5463eb4547a2c679e562180364b0767cf32.zip
cpython-bd26b5463eb4547a2c679e562180364b0767cf32.tar.gz
cpython-bd26b5463eb4547a2c679e562180364b0767cf32.tar.bz2
Issue #12692: Fix resource leak in urllib.request.
Diffstat (limited to 'Lib/test/test_urllib2.py')
-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 7ae1553..00ee669 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):