Skip to content
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

Ignore black formatting for b013 test case #251

Merged
merged 2 commits into from Mar 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/b013.py
Expand Up @@ -11,11 +11,15 @@
# pointless use of tuple
pass

# fmt: off
# Turn off black to keep brackets around
# single exception for testing purposes.
try:
pass
except (ValueError):
# not using a tuple means it's OK (if odd)
pass
# fmt: on

try:
pass
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bugbear.py
Expand Up @@ -204,7 +204,7 @@ def test_b013(self):
bbc = BugBearChecker(filename=str(filename))
errors = list(bbc.run())
expected = self.errors(
B013(10, 0, vars=("ValueError",)), B013(28, 0, vars=("re.error",))
B013(10, 0, vars=("ValueError",)), B013(32, 0, vars=("re.error",))
)
self.assertEqual(errors, expected)

Expand Down