summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_io.py
diff options
context:
space:
mode:
authorkritisingh1 <kritisingh1.ks@gmail.com>2019-04-03 22:55:50 +0530
committerkritisingh1 <kritisingh1.ks@gmail.com>2019-04-05 19:32:18 +0530
commit4c35a853c2a09de5bdb236aa6bd97aa5ea18f195 (patch)
treef2a30746bf8d4da88791f4328146bccdee34bd95 /numpy/lib/tests/test_io.py
parent91a93ad54d6f5d8476f2af046b2895ef81e48c15 (diff)
downloadnumpy-4c35a853c2a09de5bdb236aa6bd97aa5ea18f195.tar.gz
Issue deprecation warnings
Diffstat (limited to 'numpy/lib/tests/test_io.py')
-rw-r--r--numpy/lib/tests/test_io.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_io.py b/numpy/lib/tests/test_io.py
index 7ef25538b..afad803db 100644
--- a/numpy/lib/tests/test_io.py
+++ b/numpy/lib/tests/test_io.py
@@ -2369,7 +2369,8 @@ class TestPathUsage(object):
control = np.array([[1, 2], [3, 4]], dtype=int)
test = np.ndfromtxt(path, dtype=int)
- assert_array_equal(test, control)
+ with assert_warns(VisibleDeprecationWarning):
+ assert_array_equal(test, control)
def test_mafromtxt(self):
# From `test_fancy_dtype_alt` above
@@ -2380,7 +2381,8 @@ class TestPathUsage(object):
test = np.mafromtxt(path, delimiter=',')
control = ma.array([(1.0, 2.0, 3.0), (4.0, 5.0, 6.0)])
- assert_equal(test, control)
+ with assert_warns(VisibleDeprecationWarning):
+ assert_equal(test, control)
def test_recfromtxt(self):
with temppath(suffix='.txt') as path: