diff options
Diffstat (limited to 'numpy/_pytesttester.py')
-rw-r--r-- | numpy/_pytesttester.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/_pytesttester.py b/numpy/_pytesttester.py index bfcbd4f1f..8decb9dd7 100644 --- a/numpy/_pytesttester.py +++ b/numpy/_pytesttester.py @@ -144,11 +144,11 @@ class PytestTester: # so fetch module for suppression here. from numpy.distutils import cpuinfo + with warnings.catch_warnings(record=True): # Ignore the warning from importing the array_api submodule. This # warning is done on import, so it would break pytest collection, # but importing it early here prevents the warning from being # issued when it imported again. - warnings.simplefilter("ignore") import numpy.array_api # Filter out annoying import messages. Want these in both develop and |