Issue #23254: Document how to close the TCPServer listening socket.

Patch from Martin Panter.
This commit is contained in:
Robert Collins 2015-07-29 12:52:40 +12:00
parent 54d361fd86
commit 1ee9283254
3 changed files with 15 additions and 2 deletions

View file

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