diff --git a/tests/test_igzip_lib.py b/tests/test_igzip_lib.py index a336e7f7..32ed3c06 100644 --- a/tests/test_igzip_lib.py +++ b/tests/test_igzip_lib.py @@ -220,10 +220,10 @@ def test_decompressor_inputbuf_3(self): def test_failure(self): igzd = IgzipDecompressor() - with pytest.raises(Exception): + with pytest.raises(igzip_lib.IsalError): igzd.decompress(self.BAD_DATA * 30) # Make sure there are no internal consistencies - with pytest.raises(Exception): + with pytest.raises(igzip_lib.IsalError): igzd.decompress(self.BAD_DATA * 30) def test_dictionary(self):