summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-03-31 23:00:17 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-03-31 23:00:17 (GMT)
commit70deb3de3960142fcf8497d2ea0cfae6609b8e66 (patch)
tree15cb6d93f031cd47f105af9522666f3fa8631b7a /Lib/test/test_socket.py
parent6211b881613de6654ec8b5e77f3c705f1b4becb8 (diff)
downloadcpython-70deb3de3960142fcf8497d2ea0cfae6609b8e66.zip
cpython-70deb3de3960142fcf8497d2ea0cfae6609b8e66.tar.gz
cpython-70deb3de3960142fcf8497d2ea0cfae6609b8e66.tar.bz2
Issue #13872: socket.detach() now marks the socket closed (as mirrored in the socket repr()).
Patch by Matt Joiner.
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r--Lib/test/test_socket.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index d77b7dc..cce0d1b 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -951,6 +951,7 @@ class BasicTCPTest(SocketConnectedTest):
f = self.cli_conn.detach()
self.assertEqual(f, fileno)
# cli_conn cannot be used anymore...
+ self.assertTrue(self.cli_conn._closed)
self.assertRaises(socket.error, self.cli_conn.recv, 1024)
self.cli_conn.close()
# ...but we can create another socket using the (still open)