summaryrefslogtreecommitdiff
path: root/numpy/ma/tests
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/ma/tests')
-rw-r--r--numpy/ma/tests/test_core.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py
index e994a67c6..549f864b7 100644
--- a/numpy/ma/tests/test_core.py
+++ b/numpy/ma/tests/test_core.py
@@ -388,6 +388,14 @@ class TestMaskedArray(TestCase):
assert_equal(a_pickled._mask, a._mask)
assert_equal(a_pickled, a)
+ def test_pickling_keepalignment(self):
+ "Tests pickling w/ F_CONTIGUOUS arrays"
+ import cPickle
+ a = arange(10)
+ a.shape = (-1, 2)
+ b = a.T
+ test = cPickle.loads(cPickle.dumps(b))
+ assert_equal(test, b)
def test_single_element_subscript(self):
"Tests single element subscripts of Maskedarrays."