-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-129403: Fix ValueError Messages #129419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Requesting Review @sobolevn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's worth adding a blurb for this.
@ZeroIntensity @sobolevn NEWS added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be worth adding an assertRaiseRegex
test case, but I'm fine without it.
Misc/NEWS.d/next/Library/2025-01-29-17-10-00.gh-issue-129403.314159.rst
Outdated
Show resolved
Hide resolved
…14159.rst Co-authored-by: Peter Bierma <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this, LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! We generally don't backport the error message changes, but these ones were incorrect, so I treat them as bugs, so I will backport these changes.
Thanks @StanFromIreland for the PR, and @sobolevn for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…threading.Barrier` (pythonGH-129419) (cherry picked from commit bcb25d6) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
GH-129468 is a backport of this pull request to the 3.13 branch. |
…threading.Barrier` (pythonGH-129419) (cherry picked from commit bcb25d6) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
GH-129469 is a backport of this pull request to the 3.12 branch. |
…`threading.Barrier` (GH-129419) (#129469) gh-129403: Fix `ValueError` messages in `asyncio.Barrier` and `threading.Barrier` (GH-129419) (cherry picked from commit bcb25d6) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
…`threading.Barrier` (GH-129419) (#129468) gh-129403: Fix `ValueError` messages in `asyncio.Barrier` and `threading.Barrier` (GH-129419) (cherry picked from commit bcb25d6) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Peter Bierma <[email protected]>
…threading.Barrier` (python#129419) Co-authored-by: Peter Bierma <[email protected]>
All cases of this have been fixed confirmed by grep
grep -r "parties must be > 0"
Barrier.__init__
#129403