From 2e28be893dd2a8180505683f3aa0cc72ebe0bc47 Mon Sep 17 00:00:00 2001 From: pierregm Date: Fri, 18 Dec 2009 15:35:08 +0000 Subject: * fix .tolist() for mvoid objects (bug #1330) --- numpy/ma/tests/test_core.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'numpy/ma/tests') 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): -- cgit v1.2.1