diff options
author | pierregm <pierregm@localhost> | 2009-12-18 15:35:08 +0000 |
---|---|---|
committer | pierregm <pierregm@localhost> | 2009-12-18 15:35:08 +0000 |
commit | 2e28be893dd2a8180505683f3aa0cc72ebe0bc47 (patch) | |
tree | 55e5fab55202b7c3047329ecb5e647fecb90ff1a /numpy/ma/tests | |
parent | bc2232b84d2c5e50826f715507fa23d70c6c8718 (diff) | |
download | numpy-2e28be893dd2a8180505683f3aa0cc72ebe0bc47.tar.gz |
* fix .tolist() for mvoid objects (bug #1330)
Diffstat (limited to 'numpy/ma/tests')
-rw-r--r-- | numpy/ma/tests/test_core.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py index fea0ac0d4..6b21ae015 100644 --- a/numpy/ma/tests/test_core.py +++ b/numpy/ma/tests/test_core.py @@ -2332,6 +2332,10 @@ class TestMaskedArrayMethods(TestCase): dtype=[('a', int), ('b', int)]) test = a.tolist() assert_equal(test, [[1, None], [3, 4]]) + # ... on mvoid + a = a[0] + test = a.tolist() + assert_equal(test, [1, None]) def test_toflex(self): |