Skip to content

Commit 2aea1ca

Browse files
committed
add pytest.skip to skip tests that require lz4
1 parent 15d59db commit 2aea1ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_xopen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,10 +674,10 @@ def test_pass_bytesio_for_reading_and_writing(ext, threads):
674674
if ext == ".zst" and zstandard is None:
675675
return
676676
if ext == ".lz4" and lz4 is None and threads == 0:
677-
return
677+
pytest.skip("lz4 not working for BytesIO in piped write mode")
678678
if ext == ".lz4" and threads != 0:
679679
# _PipedCompressionProgram not working on write mode
680-
return
680+
pytest.skip("lz4 not working for BytesIO in piped write mode")
681681
first_line = CONTENT_LINES[0].encode("utf-8")
682682
writer = xopen(filelike, "wb", format=format, threads=threads)
683683
writer.write(first_line)

0 commit comments

Comments
 (0)