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

Function test_output_stream_constructor

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

Source from the content-addressed store, hash-verified

1741
1742
1743def test_output_stream_constructor(tmpdir):
1744 if not Codec.is_available("gzip"):
1745 pytest.skip("gzip support is not built")
1746 with pa.CompressedOutputStream(tmpdir / "ctor.gz", "gzip") as stream:
1747 stream.write(b"test")
1748 with (tmpdir / "ctor2.gz").open("wb") as f:
1749 with pa.CompressedOutputStream(f, "gzip") as stream:
1750 stream.write(b"test")
1751
1752
1753@pytest.mark.parametrize(("path", "expected_compression"), [

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected