cpython (3.2): Fix a race condition in test_socket.ThreadableTest: the client is reported as

http://hg.python.org/cpython/rev/aa4b9ed71538 changeset: 72448:aa4b9ed71538 branch: 3.2 parent: 72445:0d0bfbaaf95c user: Charles-François Natali <neologix@free.fr> date: Wed Sep 21 22:03:58 2011 +0200 summary: Fix a race condition in test_socket.ThreadableTest: the client is reported as 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 @@ -156,8 +156,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
participants (1)
-
charles-francois.natali