We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider suppressing B017 where msg= is passed to assertRaises, as it also validates the actual message in the raised exception matches msg.
msg=
msg
Example: assertRaises(Exception, msg="Some exception message")
assertRaises(Exception, msg="Some exception message")
It is equivalent to assertRaisesRegex(Exception, "^<regex_pattern>$") which does not trigger B017.
assertRaisesRegex(Exception, "^<regex_pattern>$")
The text was updated successfully, but these errors were encountered:
Opened an issue in the flake8 repo. PyCQA/flake8#1940
Sorry, something went wrong.
Reopening because maybe this is the right repo for the issue.
No branches or pull requests
Consider suppressing B017 where
msg=
is passed to assertRaises, as it also validates the actual message in the raised exception matchesmsg
.Example:
assertRaises(Exception, msg="Some exception message")
It is equivalent to
assertRaisesRegex(Exception, "^<regex_pattern>$")
which does not trigger B017.The text was updated successfully, but these errors were encountered: