diff options
-rw-r--r-- | numpy/core/tests/test_numerictypes.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/core/tests/test_numerictypes.py b/numpy/core/tests/test_numerictypes.py index 6611d0c1c..ae52f8603 100644 --- a/numpy/core/tests/test_numerictypes.py +++ b/numpy/core/tests/test_numerictypes.py @@ -331,6 +331,12 @@ class test_read_values_nested_multiple(read_values_nested, NumpyTestCase): multiple_rows = True _buffer = NbufferT +class test_empty_field(NumpyTestCase): + def check_assign(self): + a = numpy.arange(10, dtype=numpy.float32) + a.dtype = [("int", "<0i4"),("float", "<2f4")] + assert(a['int'].shape == (5,0)) + assert(a['float'].shape == (5,2)) if __name__ == "__main__": NumpyTest().run() |