[Python-checkins] cpython (merge 3.2 -> default): 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:25 CEST 2011
http://hg.python.org/cpython/rev/a06ef7ab7321
changeset: 72449:a06ef7ab7321
parent: 72446:6c60f2aacc83
parent: 72448:aa4b9ed71538
user: Charles-François Natali <neologix at free.fr>
date: Wed Sep 21 22:05:01 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
@@ -161,8 +161,8 @@
def clientRun(self, test_func):
self.server_ready.wait()
+ self.clientSetUp()
self.client_ready.set()
- self.clientSetUp()
if not hasattr(test_func, '__call__'):
raise TypeError("test_func must be a callable function")
try:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list