MCPcopy Create free account
hub / github.com/numpy/numpy / test_long_str

Function test_long_str

numpy/lib/tests/test_format.py:455–459  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

453
454
455def test_long_str():
456 # check items larger than internal buffer size, gh-4027
457 long_str_arr = np.ones(1, dtype=np.dtype((str, format.BUFFER_SIZE + 1)))
458 long_str_arr2 = roundtrip(long_str_arr)
459 assert_array_equal(long_str_arr, long_str_arr2)
460
461
462@pytest.mark.skipif(IS_WASM, reason="memmap doesn't work correctly")

Callers

nothing calls this directly

Calls 3

assert_array_equalFunction · 0.90
roundtripFunction · 0.85
dtypeMethod · 0.45

Tested by

no test coverage detected