summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-03-31 23:00:55 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-03-31 23:00:55 (GMT)
commit8315f967647f4610776fef6dda830ce72db042c0 (patch)
tree70a84128a3e9301c1df0c511b4ae7d5ae61309ca /Lib/test/test_socket.py
parent8612b4c21cfe2fa981fab1084cb7f9f6adafcb62 (diff)
parent70deb3de3960142fcf8497d2ea0cfae6609b8e66 (diff)
downloadcpython-8315f967647f4610776fef6dda830ce72db042c0.zip
cpython-8315f967647f4610776fef6dda830ce72db042c0.tar.gz
cpython-8315f967647f4610776fef6dda830ce72db042c0.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 ede1038..17c5486 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -1574,6 +1574,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)