summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_format.py
diff options
context:
space:
mode:
authorLuke Carmichael <luke@deepfield.net>2013-11-08 17:08:25 -0500
committerLuke Carmichael <luke@deepfield.net>2013-11-08 17:08:25 -0500
commita7a30016a946beef8e2c5a1860222dfbc2a60a18 (patch)
treea8c5a99c55c77f000243e433d121322ebae89b02 /numpy/lib/tests/test_format.py
parent92b9e8446d342a35fbea2dd004a99f2815b14f69 (diff)
downloadnumpy-a7a30016a946beef8e2c5a1860222dfbc2a60a18.tar.gz
test for failing chunk read of large string
Diffstat (limited to 'numpy/lib/tests/test_format.py')
-rw-r--r--numpy/lib/tests/test_format.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_format.py b/numpy/lib/tests/test_format.py
index 91643e559..1dea316bc 100644
--- a/numpy/lib/tests/test_format.py
+++ b/numpy/lib/tests/test_format.py
@@ -428,6 +428,9 @@ def test_roundtrip():
arr2 = roundtrip(arr)
yield assert_array_equal, arr, arr2
+def test_long_str():
+ long_str_arr = np.empty(10, dtype='S279291')
+ long_str_arr2 = roundtrip(long_str_arr)
@dec.slow
def test_memmap_roundtrip():