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

Function test_compressed_output_gzip

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

Source from the content-addressed store, hash-verified

1712
1713@pytest.mark.gzip
1714def test_compressed_output_gzip(tmpdir):
1715 data = b"some test data\n" * 10 + b"eof\n"
1716 fn = str(tmpdir / "compressed_output_test.gz")
1717 make_compressed_output(data, fn, "gzip")
1718 with gzip.open(fn, "rb") as f:
1719 got = f.read()
1720 assert got == data
1721
1722
1723def 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