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.
........
This commit is contained in:
Brian Curtin 2010-11-04 03:54:23 +00:00
parent f6f3c4aa53
commit dd8564faf4
1 changed files with 5 additions and 0 deletions

View File

@ -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'):