diff options
author | Julian Taylor <juliantaylor108@googlemail.com> | 2013-11-09 02:20:40 -0800 |
---|---|---|
committer | Julian Taylor <juliantaylor108@googlemail.com> | 2013-11-09 02:20:40 -0800 |
commit | 896863aff98a156b2fe0fca85fa9279ae8f15aec (patch) | |
tree | 5e35be446a50083831d76d55dfa370f41713ec0d /numpy/lib/tests/test_format.py | |
parent | ff3c89fd0b0c311db316d3d574382336ad3017f7 (diff) | |
parent | 83eb3ac0658d5e71d9860f8b1e37f285ec19c692 (diff) | |
download | numpy-896863aff98a156b2fe0fca85fa9279ae8f15aec.tar.gz |
Merge pull request #4027 from halfaleague/chunk-read-bug
Chunked reading fails when dtype.itemsize is larger than buffer size.
Diffstat (limited to 'numpy/lib/tests/test_format.py')
-rw-r--r-- | numpy/lib/tests/test_format.py | 3 |
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..485947764 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.ones(1, dtype=np.dtype((str, format.BUFFER_SIZE+1))) + long_str_arr2 = roundtrip(long_str_arr) @dec.slow def test_memmap_roundtrip(): |