-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
test_exc() helper in test_format.py doesn't fail if exception message unexpected #119949
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
Comments
Do you want to propose a fix? |
First, I think that raise statement from mentioned PR was a right quick fix. Code seems quite old (9f8ad3f) and that part could be easily backported. |
We should use standard TestCase methods |
Should we keep old helper interfaces, i.e. test_exc()? |
test_exc() can be kept, right. |
It should be kept if it is used. |
Use assertRaisesRegex() context and fix python#119781 (review)
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
Follow up of #119780. Quick fix is to add raise statement: 7f9b4d0 But it was suggested to do refactoring of this function instead.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: