summaryrefslogtreecommitdiff
path: root/numpy/matrixlib/tests/test_masked_matrix.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2019-02-21 12:49:33 -0700
committerCharles Harris <charlesr.harris@gmail.com>2019-02-21 12:49:33 -0700
commitb6dc039961768bd5f3a3d7f57e8c396f8fa02815 (patch)
tree2cf18d5b551afd86970ff2d9c55675e071b7786d /numpy/matrixlib/tests/test_masked_matrix.py
parent3898fe3fc26245e909c1d2d695b4455f07d4b06c (diff)
downloadnumpy-b6dc039961768bd5f3a3d7f57e8c396f8fa02815.tar.gz
MAINT: Move pickle import to numpy.compat
The pickle module was being imported from numpy.core.numeric. It was defined there in order to use pickle5 when available in Python3 and cpickle in Python2. The numpy.compat module seems a better place for that.
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 52fd18577..1ecc15d4a 100644
--- a/numpy/matrixlib/tests/test_masked_matrix.py
+++ b/numpy/matrixlib/tests/test_masked_matrix.py
@@ -7,7 +7,7 @@ from numpy.ma.core import (masked_array, masked_values, masked, allequal,
MaskType, getmask, MaskedArray, nomask,
log, add, hypot, divide)
from numpy.ma.extras import mr_
-from numpy.core.numeric import pickle
+from numpy.compat import pickle
class MMatrix(MaskedArray, np.matrix,):