(tmpdir)
| 1741 | |
| 1742 | |
| 1743 | def 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"), [ |