Closed as not planned
Description
Consider suppressing B017 where msg=
is passed to assertRaises, as it also validates the actual message in the raised exception matches msg
.
Example:
assertRaises(Exception, msg="Some exception message")
It is equivalent to assertRaisesRegex(Exception, "^<regex_pattern>$")
which does not trigger B017.
Metadata
Metadata
Assignees
Labels
No labels