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

Function test_compressed_output_gzip

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

Source from the content-addressed store, hash-verified

1720
1721@pytest.mark.gzip
1722def test_compressed_output_gzip(tmpdir):
1723 data = b"some test data\n" * 10 + b"eof\n"
1724 fn = str(tmpdir / "compressed_output_test.gz")
1725 make_compressed_output(data, fn, "gzip")
1726 with gzip.open(fn, "rb") as f:
1727 got = f.read()
1728 assert got == data
1729
1730
1731def test_compressed_output_bz2(tmpdir):

Callers

nothing calls this directly

Calls 3

make_compressed_outputFunction · 0.85
openMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected