mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #23254: Document how to close the TCPServer listening socket.
Patch from Martin Panter.
This commit is contained in:
parent
54d361fd86
commit
1ee9283254
3 changed files with 15 additions and 2 deletions
|
@ -144,6 +144,7 @@ class SocketServerTest(unittest.TestCase):
|
|||
server.shutdown()
|
||||
t.join()
|
||||
server.server_close()
|
||||
self.assertEqual(-1, server.socket.fileno())
|
||||
if verbose: print("done")
|
||||
|
||||
def stream_examine(self, proto, addr):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue