summaryrefslogtreecommitdiff
path: root/numpy/tests/test_warnings.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/tests/test_warnings.py')
-rw-r--r--numpy/tests/test_warnings.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/numpy/tests/test_warnings.py b/numpy/tests/test_warnings.py
index 7f22794ec..abebdafc8 100644
--- a/numpy/tests/test_warnings.py
+++ b/numpy/tests/test_warnings.py
@@ -2,18 +2,17 @@
Tests which scan for certain occurrences in the code, they may not find
all of these occurrences but should catch almost all.
"""
-
-
from __future__ import division, absolute_import, print_function
-
import sys
+import pytest
+
if sys.version_info >= (3, 4):
from pathlib import Path
import ast
import tokenize
import numpy
- from numpy.testing import run_module_suite, dec
+ from numpy.testing import run_module_suite
class ParseCall(ast.NodeVisitor):
def __init__(self):
@@ -61,7 +60,7 @@ if sys.version_info >= (3, 4):
"{} on line {}".format(self.__filename, node.lineno))
- @dec.slow
+ @pytest.mark.slow
def test_warning_calls():
# combined "ignore" and stacklevel error
base = Path(numpy.__file__).parent