(tmpdir)
| 1720 | |
| 1721 | @pytest.mark.gzip |
| 1722 | def 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 | |
| 1731 | def test_compressed_output_bz2(tmpdir): |
nothing calls this directly
no test coverage detected