diff options
author | Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> | 2025-01-30 08:11:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-30 08:11:12 (GMT) |
commit | bcb25d60b1baf9348e73cbd2359342cea6009c36 (patch) | |
tree | 4c2bb2dd60b51d5541e7494382bce6fdc1e84a4f /Lib/asyncio/locks.py | |
parent | a4722449caccc42ad644611d02fbdb5005f601eb (diff) | |
download | cpython-bcb25d60b1baf9348e73cbd2359342cea6009c36.zip cpython-bcb25d60b1baf9348e73cbd2359342cea6009c36.tar.gz cpython-bcb25d60b1baf9348e73cbd2359342cea6009c36.tar.bz2 |
gh-129403: Fix `ValueError` messages in `asyncio.Barrier` and `threading.Barrier` (#129419)
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Diffstat (limited to 'Lib/asyncio/locks.py')
-rw-r--r-- | Lib/asyncio/locks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/locks.py b/Lib/asyncio/locks.py index f2f8b7e..fa3a947 100644 --- a/Lib/asyncio/locks.py +++ b/Lib/asyncio/locks.py @@ -485,7 +485,7 @@ class Barrier(mixins._LoopBoundMixin): def __init__(self, parties): """Create a barrier, initialised to 'parties' tasks.""" if parties < 1: - raise ValueError('parties must be > 0') + raise ValueError('parties must be >= 1') self._cond = Condition() # notify all tasks when state changes |