From a49ed7650a86a01ddc77486e335d31031ef6086c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Charles-Fran=C3=A7ois=20Natali?= Date: Wed, 21 Sep 2011 22:03:58 +0200 Subject: [PATCH] Fix a race condition in test_socket.ThreadableTest: the client is reported as ready before having been set up. --- Lib/test/test_socket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.40.0