summaryrefslogtreecommitdiff
path: root/numpy/testing/_private/utils.py
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-10-31 08:28:30 +0200
committermattip <matti.picus@gmail.com>2019-10-31 08:28:30 +0200
commitfa2aa53b89765f2555adf76f0009b4c29a39099e (patch)
treed2b444c4fe532c972d8de1f437df8759f2832761 /numpy/testing/_private/utils.py
parent61bd4c2ed7d6abc1e489e0fba66ded4a7f3e2d42 (diff)
downloadnumpy-fa2aa53b89765f2555adf76f0009b4c29a39099e.tar.gz
MAINT: revert change to assert_array_equal, adjust tests
Diffstat (limited to 'numpy/testing/_private/utils.py')
-rw-r--r--numpy/testing/_private/utils.py6
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