Commit 3beb38f8 authored by Brian Curtin's avatar Brian Curtin

Fix three ResourceWarnings.

Mimic the clientTearDown from ThreadedTCPSocketTest, closing the socket.
parent fd15191b
......@@ -197,6 +197,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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment