summaryrefslogtreecommitdiff
path: root/numpy/ma/tests
diff options
context:
space:
mode:
authorpierregm <pierregm@localhost>2009-06-29 16:10:11 +0000
committerpierregm <pierregm@localhost>2009-06-29 16:10:11 +0000
commitdfd3b749cb4c423ea4c211044f34d36bc07218ba (patch)
treed9d24c6bca53bb874f28d5718a9432f5b7905db4 /numpy/ma/tests
parent0a02520361fced5ca1239930a61bef04d06f3743 (diff)
downloadnumpy-dfd3b749cb4c423ea4c211044f34d36bc07218ba.tar.gz
* Bugfix #1129. Thanks to Reggie.
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."