Skip to content

Commit

Permalink
Merge branch 'main' into fix-python#110383-timeit-spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
Towster15 authored Oct 5, 2023
2 parents c6c02ad + e37d455 commit 3b8b36c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Lib/test/test_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -5356,6 +5356,7 @@ def test_create_connection_timeout(self):


class NetworkConnectionAttributesTest(SocketTCPTest, ThreadableTest):
cli = None

def __init__(self, methodName='runTest'):
SocketTCPTest.__init__(self, methodName=methodName)
Expand All @@ -5365,7 +5366,8 @@ def clientSetUp(self):
self.source_port = socket_helper.find_unused_port()

def clientTearDown(self):
self.cli.close()
if self.cli is not None:
self.cli.close()
self.cli = None
ThreadableTest.clientTearDown(self)

Expand Down

0 comments on commit 3b8b36c

Please sign in to comment.