mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
fix test
This commit is contained in:
parent
3214d981c4
commit
cfb5397888
1 changed files with 1 additions and 4 deletions
|
|
@ -411,10 +411,7 @@ class Condition:
|
|||
while waiters and n > 0:
|
||||
waiter = waiters[0]
|
||||
try:
|
||||
if timeout:
|
||||
waiter.release(timeout)
|
||||
else:
|
||||
waiter.release()
|
||||
waiter.release()
|
||||
except RuntimeError:
|
||||
# gh-92530: The previous call of notify() released the lock,
|
||||
# but was interrupted before removing it from the queue.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue