We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8ff261 commit 000c141Copy full SHA for 000c141
tests/test_igzip.py
@@ -50,6 +50,18 @@ def test_write_readonly_file():
50
error.match(r"write\(\) on read-only IGzipFile object")
51
52
53
+def test_igzip_reader_readall():
54
+ data = io.BytesIO(COMPRESSED_DATA)
55
+ test = igzip._IGzipReader(data)
56
+ assert test.read(-1) == DATA
57
+
58
59
+def test_igzip_reader_read_zero():
60
61
62
+ assert test.read(0) == b""
63
64
65
@pytest.mark.parametrize("level", range(1, 10))
66
def test_decompress_stdin_stdout(capsysbinary, level):
67
"""Test if the command line can decompress data that has been compressed
0 commit comments