summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-09-21 20:02:27 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-09-21 20:02:27 (GMT)
commit2156594d8c9ce7ca8b3552d4a3e1043bc602d717 (patch)
treef2fe0d588792bf17ca53faa45c0acfe92c066bb0
parentf8413b29c07babc49a2a891f8716f4fcda538489 (diff)
downloadcpython-2156594d8c9ce7ca8b3552d4a3e1043bc602d717.zip
cpython-2156594d8c9ce7ca8b3552d4a3e1043bc602d717.tar.gz
cpython-2156594d8c9ce7ca8b3552d4a3e1043bc602d717.tar.bz2
Fix a race condition in test_socket.ThreadableTest: the client is reported
ready before having been set up.
-rw-r--r--Lib/test/test_socket.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 12e09dd..0d6240d 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -145,8 +145,8 @@ class ThreadableTest:
def clientRun(self, test_func):
self.server_ready.wait()
- self.client_ready.set()
self.clientSetUp()
+ self.client_ready.set()
with test_support.check_py3k_warnings():
if not callable(test_func):
raise TypeError("test_func must be a callable function.")