[Python-checkins] cpython (2.7): Fix a race condition in test_socket.ThreadableTest: the client is reported
charles-francois.natali
python-checkins at python.org
Wed Sep 21 22:03:24 CEST 2011
http://hg.python.org/cpython/rev/93a5388a3721
changeset: 72447:93a5388a3721
branch: 2.7
parent: 72441:c158eac8e951
user: Charles-François Natali <neologix at free.fr>
date: Wed Sep 21 22:02:27 2011 +0200
summary:
Fix a race condition in test_socket.ThreadableTest: the client is reported
ready before having been set up.
files:
Lib/test/test_socket.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -145,8 +145,8 @@
def clientRun(self, test_func):
self.server_ready.wait()
+ self.clientSetUp()
self.client_ready.set()
- self.clientSetUp()
with test_support.check_py3k_warnings():
if not callable(test_func):
raise TypeError("test_func must be a callable function.")
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list