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

Function test_compressed_concatenated_gzip

python/pyarrow/tests/test_io.py:1683–1690  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

1681
1682@pytest.mark.gzip
1683def test_compressed_concatenated_gzip(tmpdir):
1684 data = b"some test data\n" * 10 + b"eof\n"
1685 fn = str(tmpdir / "compressed_input_test2.gz")
1686 with gzip.open(fn, "wb") as f:
1687 f.write(data[:50])
1688 with gzip.open(fn, "ab") as f:
1689 f.write(data[50:])
1690 check_compressed_concatenated(data, fn, "gzip")
1691
1692
1693@pytest.mark.gzip

Callers

nothing calls this directly

Calls 3

openMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected