summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-11-04 03:49:29 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-11-04 03:49:29 (GMT)
commit8f8ed9419608fb1c69ba3011fb956cc854140b94 (patch)
tree0058b33d1813ac39643abe30086498488b2ebe13 /Lib
parent48bbc68c8bfefc25759c98bf43b6bc33b6b8bdf0 (diff)
downloadcpython-8f8ed9419608fb1c69ba3011fb956cc854140b94.zip
cpython-8f8ed9419608fb1c69ba3011fb956cc854140b94.tar.gz
cpython-8f8ed9419608fb1c69ba3011fb956cc854140b94.tar.bz2
Merged revisions 86151 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86151 | brian.curtin | 2010-11-03 22:41:43 -0500 (Wed, 03 Nov 2010) | 3 lines Fix three ResourceWarnings. Mimic the clientTearDown from ThreadedTCPSocketTest, closing the socket. ........
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_socket.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index a467e0d..98ba4df 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -177,6 +177,11 @@ class ThreadedUDPSocketTest(SocketUDPTest, ThreadableTest):
def clientSetUp(self):
self.cli = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
+ def clientTearDown(self):
+ self.cli.close()
+ self.cli = None
+ ThreadableTest.clientTearDown(self)
+
class SocketConnectedTest(ThreadedTCPSocketTest):
"""Socket tests for client-server connection.