-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-120544: Add else: fail()
to tests where exception is expected
#120545
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
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.
LGTM.
Normally, we could use assertRaises
, but these cases are close to testing unittest
itself.
Thanks @sobolevn for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…ted (pythonGH-120545) (cherry picked from commit 42ebdd8) Co-authored-by: Nikita Sobolev <[email protected]>
…ted (pythonGH-120545) (cherry picked from commit 42ebdd8) Co-authored-by: Nikita Sobolev <[email protected]>
GH-120546 is a backport of this pull request to the 3.13 branch. |
GH-120547 is a backport of this pull request to the 3.12 branch. |
else: fail()
to test cases where exception is always expected #120544