summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorRobert Collins <rbtcollins@hp.com>2015-07-29 00:52:40 (GMT)
committerRobert Collins <rbtcollins@hp.com>2015-07-29 00:52:40 (GMT)
commit1ee9283254446998c9f423896b1edffe42f246d3 (patch)
tree999550173f236130b139af1aeb7178ec46378f4d /Lib/test
parent54d361fd866e811944096e48f8b58595391050ed (diff)
downloadcpython-1ee9283254446998c9f423896b1edffe42f246d3.zip
cpython-1ee9283254446998c9f423896b1edffe42f246d3.tar.gz
cpython-1ee9283254446998c9f423896b1edffe42f246d3.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 924b9c4..325d485 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):