mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Issue #4397. Fix occasional test_socket failure on OS X.
This commit is contained in:
parent
8adc0b54d4
commit
e82cdae58f
2 changed files with 6 additions and 0 deletions
|
@ -584,6 +584,10 @@ class BasicTCPTest(SocketConnectedTest):
|
||||||
# Testing shutdown()
|
# Testing shutdown()
|
||||||
msg = self.cli_conn.recv(1024)
|
msg = self.cli_conn.recv(1024)
|
||||||
self.assertEqual(msg, MSG)
|
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):
|
def _testShutdown(self):
|
||||||
self.serv_conn.send(MSG)
|
self.serv_conn.send(MSG)
|
||||||
|
|
|
@ -357,6 +357,8 @@ C-API
|
||||||
Extension Modules
|
Extension Modules
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- Issue #4937: Fix occasional test_socket failure on OS X.
|
||||||
|
|
||||||
- Issue #4279: Fix build of parsermodule under Cygwin.
|
- Issue #4279: Fix build of parsermodule under Cygwin.
|
||||||
|
|
||||||
- Issue #4051: Prevent conflict of UNICODE macros in cPickle.
|
- Issue #4051: Prevent conflict of UNICODE macros in cPickle.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue