summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2013-11-09 11:22:01 +0100
committerJulian Taylor <jtaylor.debian@googlemail.com>2013-11-09 11:23:47 +0100
commit235d957a427bc2f18642475a9c65063cf0580d6c (patch)
treeed806d94add3f300f068492d9a241df2250f114f /numpy/lib
parent896863aff98a156b2fe0fca85fa9279ae8f15aec (diff)
downloadnumpy-235d957a427bc2f18642475a9c65063cf0580d6c.tar.gz
TST: improve test_long_str and add documentation
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/tests/test_format.py4
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():