mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix a race condition in test_socket.ThreadableTest: the client is reported
ready before having been set up.
This commit is contained in:
parent
f8413b29c0
commit
2156594d8c
1 changed files with 1 additions and 1 deletions
|
@ -145,8 +145,8 @@ class ThreadableTest:
|
|||
|
||||
def clientRun(self, test_func):
|
||||
self.server_ready.wait()
|
||||
self.client_ready.set()
|
||||
self.clientSetUp()
|
||||
self.client_ready.set()
|
||||
with test_support.check_py3k_warnings():
|
||||
if not callable(test_func):
|
||||
raise TypeError("test_func must be a callable function.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue