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

Function test_overwritten_file

python/pyarrow/tests/test_feather.py:553–566  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

551
552@pytest.mark.numpy
553def test_overwritten_file(version):
554 path = random_path()
555 TEST_FILES.append(path)
556
557 num_values = 100
558 np.random.seed(0)
559
560 values = np.random.randint(0, 10, size=num_values)
561
562 table = pa.table({'ints': values})
563 write_feather(table, path)
564
565 table = pa.table({'more_ints': values[0:num_values//2]})
566 _check_arrow_roundtrip(table, path=path)
567
568
569@pytest.mark.pandas

Callers

nothing calls this directly

Calls 4

write_featherFunction · 0.90
random_pathFunction · 0.85
_check_arrow_roundtripFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected