diff options
Diffstat (limited to 'numpy/testing/_private/utils.py')
-rw-r--r-- | numpy/testing/_private/utils.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/numpy/testing/_private/utils.py b/numpy/testing/_private/utils.py index 5417359fe..8a31fcf15 100644 --- a/numpy/testing/_private/utils.py +++ b/numpy/testing/_private/utils.py @@ -688,10 +688,8 @@ def assert_array_compare(comparison, x, y, err_msg='', verbose=True, __tracebackhide__ = True # Hide traceback for py.test from numpy.core import array, array2string, isnan, inf, bool_, errstate, all, max, object_ - with warnings.catch_warnings(): - warnings.filterwarnings('ignore', '', DeprecationWarning) - x = array(x, copy=False, subok=True) - y = array(y, copy=False, subok=True) + x = array(x, copy=False, subok=True) + y = array(y, copy=False, subok=True) # original array for output formatting ox, oy = x, y |