You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
skirpichev
changed the title
test_exc() helper in test_format.py doesn't fail if exception messages unexpected
test_exc() helper in test_format.py doesn't fail if exception message unexpected
Jun 2, 2024
We should use standard TestCase methods assertRaises()/assertRaisesRegex() to handle expected errors and subTest() to add more context and allow multiple failures per test.
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
The text was updated successfully, but these errors were encountered: