Fix a race condition in test_socket.ThreadableTest: the client is reported as
ready before having been set up.
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 @@
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: