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 5871c6f commit c84f90dCopy full SHA for c84f90d
tests/test_igzip_threaded.py
@@ -139,10 +139,11 @@ def test_writer_not_readable():
139
140
141
def test_writer_wrong_level():
142
- with pytest.raises(ValueError) as error:
143
- igzip_threaded._ThreadedGzipWriter(io.BytesIO(), level=42)
144
- error.match("Invalid compression level")
145
- error.match("42")
+ with tempfile.NamedTemporaryFile("wb") as tmp:
+ with pytest.raises(ValueError) as error:
+ igzip_threaded.open(tmp.name, mode="wb", compresslevel=42)
+ error.match("Invalid compression level")
146
+ error.match("42")
147
148
149
def test_writer_too_low_threads():
0 commit comments