summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorcgohlke <cgohlke@uci.edu>2012-08-07 19:13:33 -0700
committercgohlke <cgohlke@uci.edu>2012-08-07 19:13:33 -0700
commite391a4461507b1ba89a7ee1167d23fc13a308795 (patch)
tree2262a819d3c5aa45677ca56dcfbdba1769dc34df /numpy
parent1079fa42597e2a8900110f7498236e9f034d1179 (diff)
downloadnumpy-e391a4461507b1ba89a7ee1167d23fc13a308795.tar.gz
Add test for long number in shape specifier of dtype string
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/tests/test_dtype.py5
1 files changed, 5 insertions, 0 deletions
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', '<M8[D]'), ('b', '<m8[us]')])")
+ @dec.skipif(sys.version_info[0] > 2)
+ def test_dtype_str_with_long_in_shape(self):
+ # Pull request #376
+ dt = np.dtype('(1L,)i4')
+
class TestDtypeAttributeDeletion(object):