mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +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:
commit
9089b7956b
1 changed files with 1 additions and 1 deletions
|
@ -161,8 +161,8 @@ class ThreadableTest:
|
||||||
|
|
||||||
def clientRun(self, test_func):
|
def clientRun(self, test_func):
|
||||||
self.server_ready.wait()
|
self.server_ready.wait()
|
||||||
self.client_ready.set()
|
|
||||||
self.clientSetUp()
|
self.clientSetUp()
|
||||||
|
self.client_ready.set()
|
||||||
if not hasattr(test_func, '__call__'):
|
if not hasattr(test_func, '__call__'):
|
||||||
raise TypeError("test_func must be a callable function")
|
raise TypeError("test_func must be a callable function")
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue