From e391a4461507b1ba89a7ee1167d23fc13a308795 Mon Sep 17 00:00:00 2001 From: cgohlke Date: Tue, 7 Aug 2012 19:13:33 -0700 Subject: Add test for long number in shape specifier of dtype string --- numpy/core/tests/test_dtype.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/numpy/core/tests/test_dtype.py b/numpy/core/tests/test_dtype.py index 246ebba6b..5645a0824 100644 --- a/numpy/core/tests/test_dtype.py +++ b/numpy/core/tests/test_dtype.py @@ -413,6 +413,11 @@ class TestString(TestCase): assert_equal(repr(dt), "dtype([('a', ' 2) + def test_dtype_str_with_long_in_shape(self): + # Pull request #376 + dt = np.dtype('(1L,)i4') + class TestDtypeAttributeDeletion(object): -- cgit v1.2.1