(tmpdir)
| 1729 | |
| 1730 | |
| 1731 | def 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 | |
| 1743 | def test_output_stream_constructor(tmpdir): |
nothing calls this directly
no test coverage detected