MCPcopy Create free account
hub / github.com/apache/arrow / test_uint64_max_convert

Function test_uint64_max_convert

python/pyarrow/tests/test_convert_builtin.py:487–495  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

485@pytest.mark.xfail(reason="Type inference for uint64 not implemented",
486 raises=OverflowError)
487def test_uint64_max_convert():
488 data = [0, np.iinfo(np.uint64).max]
489
490 arr = pa.array(data, type=pa.uint64())
491 expected = pa.array(np.array(data, dtype='uint64'))
492 assert arr.equals(expected)
493
494 arr_inferred = pa.array(data)
495 assert arr_inferred.equals(expected)
496
497
498@pytest.mark.parametrize("bits", [8, 16, 32, 64])

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected