Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zheaoli committed Oct 16, 2024
1 parent 3214d98 commit cfb5397
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Lib/threading.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,7 @@ def notify(self, n=1, timeout=None):
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.
Expand Down

0 comments on commit cfb5397

Please sign in to comment.