summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-09-21 20:05:01 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-09-21 20:05:01 (GMT)
commit9089b7956b658c6fbdeb29826e73b096d7f219f5 (patch)
tree2c555a180aad48f4752c8dc1f12786f6ba0e445b /Lib/test/test_socket.py
parent85579b8f0e6e506f4995098ac0ee1d96e9960ed9 (diff)
parenta49ed7650a86a01ddc77486e335d31031ef6086c (diff)
downloadcpython-9089b7956b658c6fbdeb29826e73b096d7f219f5.zip
cpython-9089b7956b658c6fbdeb29826e73b096d7f219f5.tar.gz
cpython-9089b7956b658c6fbdeb29826e73b096d7f219f5.tar.bz2
Fix a race condition in test_socket.ThreadableTest: the client is reported
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 f47e61e..39bb10c 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -161,8 +161,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: