mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix three ResourceWarnings.
Mimic the clientTearDown from ThreadedTCPSocketTest, closing the socket.
This commit is contained in:
parent
fd15191b92
commit
3beb38f8ff
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue