summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-09-21 20:03:58 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-09-21 20:03:58 (GMT)
commita49ed7650a86a01ddc77486e335d31031ef6086c (patch)
treef1518018d2c11edf9b3fd8fddc78e81a27646b8a /Lib
parent17dac4c0e27116d4f7681bc0cb01ac6036b97932 (diff)
downloadcpython-a49ed7650a86a01ddc77486e335d31031ef6086c.zip
cpython-a49ed7650a86a01ddc77486e335d31031ef6086c.tar.gz
cpython-a49ed7650a86a01ddc77486e335d31031ef6086c.tar.bz2
Fix a race condition in test_socket.ThreadableTest: the client is reported as
ready before having been set up.
Diffstat (limited to 'Lib')
-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 baca4c1..197ca09 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -156,8 +156,8 @@ class ThreadableTest:
def clientRun(self, test_func):
self.server_ready.wait()
- self.client_ready.set()
self.clientSetUp()
+ self.client_ready.set()
if not hasattr(test_func, '__call__'):
raise TypeError("test_func must be a callable function")
try: