Skip to content

Commit ec4e155

Browse files
committed
Add regression test
1 parent 76c1ac5 commit ec4e155

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/data/concatenated.fastq.gz

90.5 KB
Binary file not shown.

tests/test_igzip.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,3 +288,11 @@ def test_header_corrupt():
288288
def test_truncated_header(trunc):
289289
with pytest.raises(EOFError):
290290
igzip.decompress(trunc)
291+
292+
293+
def test_concatenated_gzip():
294+
concat = Path(__file__).parent / "data" / "concatenated.fastq.gz"
295+
data = gzip.decompress(concat.read_bytes())
296+
with igzip.open(concat, "rb") as igzip_h:
297+
result = igzip_h.read()
298+
assert data == result

0 commit comments

Comments
 (0)