diff options
Diffstat (limited to 'numpy/tests/test_warnings.py')
-rw-r--r-- | numpy/tests/test_warnings.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/tests/test_warnings.py b/numpy/tests/test_warnings.py index ff75681dc..c4c206542 100644 --- a/numpy/tests/test_warnings.py +++ b/numpy/tests/test_warnings.py @@ -35,7 +35,7 @@ class FindFuncs(ast.NodeVisitor): if p.ls[-1] == 'simplefilter' or p.ls[-1] == 'filterwarnings': if node.args[0].s == "ignore": raise AssertionError( - "ignore filter should not be used; found in " + "warnings should have an appropriate stacklevel; found in " "{} on line {}".format(self.__filename, node.lineno)) if p.ls[-1] == 'warn' and ( |