diff options
author | Robert Collins <rbtcollins@hp.com> | 2015-07-29 00:52:40 (GMT) |
---|---|---|
committer | Robert Collins <rbtcollins@hp.com> | 2015-07-29 00:52:40 (GMT) |
commit | 1ee9283254446998c9f423896b1edffe42f246d3 (patch) | |
tree | 999550173f236130b139af1aeb7178ec46378f4d /Lib/test | |
parent | 54d361fd866e811944096e48f8b58595391050ed (diff) | |
download | cpython-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.py | 1 |
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): |