diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-11-09 11:22:01 +0100 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2013-11-09 11:23:47 +0100 |
commit | 235d957a427bc2f18642475a9c65063cf0580d6c (patch) | |
tree | ed806d94add3f300f068492d9a241df2250f114f /numpy/lib/tests/test_format.py | |
parent | 896863aff98a156b2fe0fca85fa9279ae8f15aec (diff) | |
download | numpy-235d957a427bc2f18642475a9c65063cf0580d6c.tar.gz |
TST: improve test_long_str and add documentation
Diffstat (limited to 'numpy/lib/tests/test_format.py')
-rw-r--r-- | numpy/lib/tests/test_format.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_format.py b/numpy/lib/tests/test_format.py index 485947764..deec2e4eb 100644 --- a/numpy/lib/tests/test_format.py +++ b/numpy/lib/tests/test_format.py @@ -429,8 +429,10 @@ def test_roundtrip(): yield assert_array_equal, arr, arr2 def test_long_str(): - long_str_arr = np.ones(1, dtype=np.dtype((str, format.BUFFER_SIZE+1))) + # check items larger than internal buffer size, gh-4027 + long_str_arr = np.ones(1, dtype=np.dtype((str, format.BUFFER_SIZE + 1))) long_str_arr2 = roundtrip(long_str_arr) + assert_array_equal(long_str_arr, long_str_arr2) @dec.slow def test_memmap_roundtrip(): |