summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-07-29 00:53:30 (GMT)
committerRobert Collins <rbtcollins@hp.com>2015-07-29 00:53:30 (GMT)
commitf7e3b5e153718931631e7fdf21779843e6e73379 (patch)
tree5bd0361e65ff14676ca4562396f38be8cc14dc98 /Lib/test
parentace8848df69ba927c6fb4af7fffef706a1a19279 (diff)
parent1ee9283254446998c9f423896b1edffe42f246d3 (diff)
downloadcpython-f7e3b5e153718931631e7fdf21779843e6e73379.zip
cpython-f7e3b5e153718931631e7fdf21779843e6e73379.tar.gz
cpython-f7e3b5e153718931631e7fdf21779843e6e73379.tar.bz2
Issue #23254: Document how to close the TCPServer listening socket.
Patch from Martin Panter.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_socketserver.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py
index 31ab3b6..1ea66a6 100644
--- a/Lib/test/test_socketserver.py
+++ b/Lib/test/test_socketserver.py
@@ -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):