summaryrefslogtreecommitdiff
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-09-21 22:03:58 +0200
committerCharles-François Natali <neologix@free.fr>2011-09-21 22:03:58 +0200
commita49ed7650a86a01ddc77486e335d31031ef6086c (patch)
treef1518018d2c11edf9b3fd8fddc78e81a27646b8a /Lib/test/test_socket.py
parent17dac4c0e27116d4f7681bc0cb01ac6036b97932 (diff)
downloadcpython-git-a49ed7650a86a01ddc77486e335d31031ef6086c.tar.gz
Fix a race condition in test_socket.ThreadableTest: the client is reported as
ready before having been set up.
Diffstat (limited to 'Lib/test/test_socket.py')
-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 baca4c12c7..197ca0933f 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: