Issue #4397. Fix occasional test_socket failure on OS X.

This commit is contained in:
Mark Dickinson 2009-01-15 14:54:37 +00:00
parent 8adc0b54d4
commit e82cdae58f
2 changed files with 6 additions and 0 deletions

View file

@ -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)