Fix a race condition in test_socket.ThreadableTest: the client is reported as

ready before having been set up.
This commit is contained in:
Charles-François Natali 2011-09-21 22:03:58 +02:00
parent 17dac4c0e2
commit a49ed7650a
1 changed files with 1 additions and 1 deletions

View File

@ -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: