summaryrefslogtreecommitdiff
path: root/numpy/_pytesttester.py
diff options
context:
space:
mode:
authorBrigitta Sipőcz <bsipocz@gmail.com>2022-05-21 23:48:13 -0700
committerBrigitta Sipőcz <bsipocz@gmail.com>2022-05-21 23:48:13 -0700
commit3a5fd833245cfa237ba9c18eb74c6959e2a4a047 (patch)
tree63ca19924bac4f94716e5ac9fbb81973eda60305 /numpy/_pytesttester.py
parentc549d844a478cc7e4e16b5674fcdedba73bde958 (diff)
downloadnumpy-3a5fd833245cfa237ba9c18eb74c6959e2a4a047.tar.gz
BUG: Adding the default pytest doctest runner instead of the ValueError to the np testrunner
Diffstat (limited to 'numpy/_pytesttester.py')
-rw-r--r--numpy/_pytesttester.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/numpy/_pytesttester.py b/numpy/_pytesttester.py
index 8decb9dd7..01ddaaf98 100644
--- a/numpy/_pytesttester.py
+++ b/numpy/_pytesttester.py
@@ -33,7 +33,6 @@ import os
__all__ = ['PytestTester']
-
def _show_numpy_info():
import numpy as np
@@ -44,7 +43,6 @@ def _show_numpy_info():
print("NumPy CPU features: ", (info if info else 'nothing enabled'))
-
class PytestTester:
"""
Pytest test runner.
@@ -167,7 +165,7 @@ class PytestTester:
]
if doctests:
- raise ValueError("Doctests not supported")
+ pytest_args += ["--doctest-modules"]
if extra_argv:
pytest_args += list(extra_argv)