diff options
Diffstat (limited to 'numpy')
-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(): |