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

Function test_overwritten_file

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

Source from the content-addressed store, hash-verified

558
559@pytest.mark.numpy
560def test_overwritten_file(version):
561 path = random_path()
562 TEST_FILES.append(path)
563
564 num_values = 100
565 np.random.seed(0)
566
567 values = np.random.randint(0, 10, size=num_values)
568
569 table = pa.table({'ints': values})
570 write_feather(table, path)
571
572 table = pa.table({'more_ints': values[0:num_values//2]})
573 _check_arrow_roundtrip(table, path=path)
574
575
576@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