diff --git a/py7zr/compressor.py b/py7zr/compressor.py index e051feec..59a95578 100644 --- a/py7zr/compressor.py +++ b/py7zr/compressor.py @@ -45,7 +45,7 @@ except ImportError: import py7zr.bcjfilter as BCJFilter # type: ignore # noqa try: - import pyzstd + import pyzstd # noqa import py7zr.pyzstdfilter as Zstd # type: ignore # noqa except ImportError: @@ -254,7 +254,6 @@ def decompress(self, data: Union[bytes, bytearray, memoryview], max_length: int return bytes(data) - class PpmdDecompressor(ISevenZipDecompressor): def __init__(self, properties: bytes): diff --git a/tests/test_extra_codecs.py b/tests/test_extra_codecs.py index 3d2f3732..bd74bba4 100644 --- a/tests/test_extra_codecs.py +++ b/tests/test_extra_codecs.py @@ -119,6 +119,7 @@ def test_pyzstd_compressor_1(): b"\xe4\x97BB\xd2\x01\x00\x18\xb8z\x02" assert outdata == compressed + @pytest.mark.unit @pytest.mark.skipif(zstandard is None, reason="zstd library is not exist.") def test_zstd_decompressor_1():