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

Function test_compressed_output_bz2

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

Source from the content-addressed store, hash-verified

1729
1730
1731def test_compressed_output_bz2(tmpdir):
1732 data = b"some test data\n" * 10 + b"eof\n"
1733 fn = str(tmpdir / "compressed_output_test.bz2")
1734 try:
1735 make_compressed_output(data, fn, "bz2")
1736 except NotImplementedError as e:
1737 pytest.skip(str(e))
1738 with bz2.BZ2File(fn, "r") as f:
1739 got = f.read()
1740 assert got == data
1741
1742
1743def test_output_stream_constructor(tmpdir):

Callers

nothing calls this directly

Calls 2

make_compressed_outputFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected