mirror of https://github.com/python/cpython
Merged revisions 86006 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86006 | brian.curtin | 2010-10-30 19:34:23 -0500 (Sat, 30 Oct 2010) | 3 lines Fix ResourceWarning for an unclosed socket. test_return_header_keep_alive - Added a cleanup call for the socket. ........
This commit is contained in:
parent
ee139688d3
commit
55b6251c9d
|
@ -256,6 +256,7 @@ class BaseHTTPServerTestCase(BaseTestCase):
|
||||||
res = self.con.getresponse()
|
res = self.con.getresponse()
|
||||||
self.assertEqual(res.getheader('Connection'), 'keep-alive')
|
self.assertEqual(res.getheader('Connection'), 'keep-alive')
|
||||||
self.con.request('TEST', '/')
|
self.con.request('TEST', '/')
|
||||||
|
self.addCleanup(self.con.close)
|
||||||
|
|
||||||
def test_internal_key_error(self):
|
def test_internal_key_error(self):
|
||||||
self.con.request('KEYERROR', '/')
|
self.con.request('KEYERROR', '/')
|
||||||
|
|
Loading…
Reference in New Issue