summaryrefslogtreecommitdiff
path: root/numpy/matrixlib/tests/test_masked_matrix.py
diff options
context:
space:
mode:
authorPierre Glaser <pierreglaser@msn.com>2018-10-05 16:01:28 +0200
committerPierre Glaser <pierreglaser@msn.com>2018-10-05 16:01:28 +0200
commit043eb99687fe0756e50acf62773f475916fc133c (patch)
treedc7c7a811b12d618813a826d2dc7d6597f584a26 /numpy/matrixlib/tests/test_masked_matrix.py
parent02d5619d70bf7bc6bb23c95cba7ef19aaf0b6e32 (diff)
downloadnumpy-043eb99687fe0756e50acf62773f475916fc133c.tar.gz
removed usage of np.ndarray.dump[s]
Diffstat (limited to 'numpy/matrixlib/tests/test_masked_matrix.py')
-rw-r--r--numpy/matrixlib/tests/test_masked_matrix.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/matrixlib/tests/test_masked_matrix.py b/numpy/matrixlib/tests/test_masked_matrix.py
index 219349f93..2f7ea5632 100644
--- a/numpy/matrixlib/tests/test_masked_matrix.py
+++ b/numpy/matrixlib/tests/test_masked_matrix.py
@@ -80,7 +80,7 @@ class TestMaskedMatrix(object):
# Test pickling w/ a subclass of ndarray
a = masked_array(np.matrix(list(range(10))), mask=[1, 0, 1, 0, 0] * 2)
for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
- a_pickled = pickle.loads(a.dumps(protocol=proto))
+ a_pickled = pickle.loads(pickle.dumps(protocol=proto))
assert_equal(a_pickled._mask, a._mask)
assert_equal(a_pickled, a)
assert_(isinstance(a_pickled._data, np.matrix))