diff options
| author | Mark Dickinson <dickinsm@gmail.com> | 2009-01-15 14:54:37 +0000 |
|---|---|---|
| committer | Mark Dickinson <dickinsm@gmail.com> | 2009-01-15 14:54:37 +0000 |
| commit | b67460f29f55460737115380e8fafad1406d9605 (patch) | |
| tree | 4f76db85083772657bc15f7bbd1780a32a5923a2 /Lib/test/test_socket.py | |
| parent | 188c0a373edcd30518b06512925c7774be82f7e3 (diff) | |
| download | cpython-b67460f29f55460737115380e8fafad1406d9605.tar.gz | |
Issue #4397. Fix occasional test_socket failure on OS X.
Diffstat (limited to 'Lib/test/test_socket.py')
| -rw-r--r-- | Lib/test/test_socket.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 1287dd102c..eaf9bcba19 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) |
