Skip to content

Commit c6cdc2d

Browse files
committed
exclude tm.assert_produces_warning(False)
1 parent 2562c79 commit c6cdc2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/enforce_match_arg_in_assert_produces_warning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def visit_Call(self, node) -> None:
3535
# ignore tm.assert_produces_warning(None)/tm.assert_produces_warning()
3636
if ( len(node.args) == 0 or
3737
(isinstance(node.args[0], ast.Constant) and
38-
node.args[0].value is None) ):
38+
( node.args[0].value is None or node.args[0].value is False))):
3939
return
4040
if not any(keyword.arg == "match" for keyword in node.keywords):
4141
self.error_set.append((node.lineno, node.col_offset))

0 commit comments

Comments
 (0)