summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-15 14:54:37 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-01-15 14:54:37 (GMT)
commite82cdae58faf838ff8f81cf6b20edc6efcb9825e (patch)
treeaeba58818ed98c557363b8b75b683bb8ee16c0ae
parent8adc0b54d4f995ff739967fdc70d6a6e53ac1f90 (diff)
downloadcpython-e82cdae58faf838ff8f81cf6b20edc6efcb9825e.zip
cpython-e82cdae58faf838ff8f81cf6b20edc6efcb9825e.tar.gz
cpython-e82cdae58faf838ff8f81cf6b20edc6efcb9825e.tar.bz2
Issue #4397. Fix occasional test_socket failure on OS X.
-rw-r--r--Lib/test/test_socket.py4
-rw-r--r--Misc/NEWS2
2 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 1287dd1..eaf9bcb 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -584,6 +584,10 @@ class BasicTCPTest(SocketConnectedTest):
# Testing shutdown()
msg = self.cli_conn.recv(1024)
self.assertEqual(msg, MSG)
+ # wait for _testShutdown to finish: on OS X, when the server
+ # closes the connection the client also becomes disconnected,
+ # and the client's shutdown call will fail. (Issue #4937.)
+ self.done.wait()
def _testShutdown(self):
self.serv_conn.send(MSG)
diff --git a/Misc/NEWS b/Misc/NEWS
index 9ced73d..96d40a9 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -357,6 +357,8 @@ C-API
Extension Modules
-----------------
+- Issue #4937: Fix occasional test_socket failure on OS X.
+
- Issue #4279: Fix build of parsermodule under Cygwin.
- Issue #4051: Prevent conflict of UNICODE macros in cPickle.