summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-11-04 03:54:23 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-11-04 03:54:23 (GMT)
commitdd8564faf466a235ccc81cbf7fb3f6e878bbf93d (patch)
tree9fd8b74634c8fa71aed3a33d410f17771f34cf2e /Lib/test
parentf6f3c4aa53732d4cd4254f4f02b779886f9c9cc4 (diff)
downloadcpython-dd8564faf466a235ccc81cbf7fb3f6e878bbf93d.zip
cpython-dd8564faf466a235ccc81cbf7fb3f6e878bbf93d.tar.gz
cpython-dd8564faf466a235ccc81cbf7fb3f6e878bbf93d.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/test')
-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 c2aa936..00bf948 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -186,6 +186,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):
def __init__(self, methodName='runTest'):