Skip to content
Prev Previous commit
Next Next commit
Fix tests
  • Loading branch information
eendebakpt committed Jun 24, 2025
commit 43258016a54a9cafe1a29338e5ed2403f196e5c9
2 changes: 1 addition & 1 deletion numpy/tests/test_warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def visit_Call(self, node):
ast.NodeVisitor.generic_visit(self, node)

if p.ls[-1] == 'simplefilter' or p.ls[-1] == 'filterwarnings':
if if node.args and node.args[0].value == "ignore":
if node.args and node.args[0].value == "ignore":
raise AssertionError(
"warnings should have an appropriate stacklevel; "
f"found in {self.__filename} on line {node.lineno}")
Expand Down