Skip to content

Commit

Permalink
Fixed flake8 false positives (B023)
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Jul 12, 2022
1 parent 20b07e7 commit ecf1c04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def test_basics_subgroup_by_predicate__match(self):
]

for match_type, template in testcases:
subeg = eg.subgroup(lambda e: isinstance(e, match_type))
subeg = eg.subgroup(lambda e: isinstance(e, match_type)) # noqa: B023
self.assertEqual(subeg.message, eg.message)
self.assertMatchesTemplate(subeg, ExceptionGroup, template)

Expand Down Expand Up @@ -337,7 +337,7 @@ def test_basics_split_by_predicate__match(self):
]

for match_type, match_template, rest_template in testcases:
match, rest = eg.split(lambda e: isinstance(e, match_type))
match, rest = eg.split(lambda e: isinstance(e, match_type)) # noqa: B023
self.assertEqual(match.message, eg.message)
self.assertMatchesTemplate(match, ExceptionGroup, match_template)
if rest_template is not None:
Expand Down

0 comments on commit ecf1c04

Please sign in to comment.