summaryrefslogtreecommitdiff
path: root/numpy/_pytesttester.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/_pytesttester.py')
-rw-r--r--numpy/_pytesttester.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/_pytesttester.py b/numpy/_pytesttester.py
index 0dc38fa59..9e3c95740 100644
--- a/numpy/_pytesttester.py
+++ b/numpy/_pytesttester.py
@@ -169,7 +169,10 @@ class PytestTester:
pytest_args += ["--cov=" + module_path]
if label == "fast":
- pytest_args += ["-m", "not slow"]
+ # not importing at the top level to avoid circular import of module
+ from numpy.testing import IS_PYPY
+ pytest_args += ["-m", "not slow and not slow_pypy"] \
+ if IS_PYPY else ["-m", "not slow"]
elif label != "full":
pytest_args += ["-m", label]