mirror of
https://github.com/python/cpython.git
synced 2025-10-31 21:51:50 +00:00
gh-129403: Fix ValueError messages in asyncio.Barrier and threading.Barrier (#129419)
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
parent
a4722449ca
commit
bcb25d60b1
3 changed files with 3 additions and 2 deletions
|
|
@ -694,7 +694,7 @@ def __init__(self, parties, action=None, timeout=None):
|
|||
|
||||
"""
|
||||
if parties < 1:
|
||||
raise ValueError("parties must be > 0")
|
||||
raise ValueError("parties must be >= 1")
|
||||
self._cond = Condition(Lock())
|
||||
self._action = action
|
||||
self._timeout = timeout
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue