From 3a5fd833245cfa237ba9c18eb74c6959e2a4a047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Sat, 21 May 2022 23:48:13 -0700 Subject: BUG: Adding the default pytest doctest runner instead of the ValueError to the np testrunner --- numpy/_pytesttester.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'numpy/_pytesttester.py') 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) -- cgit v1.2.1