Skip to content

test_decompress_zstd fails with zstd installed #142

Description

@mtelka

The test_decompress_zstd test fails with the zstd (instead of zstandard) installed:

ERROR: test_decompress_zstd
----------------------------------------------------------------------
Traceback (most recent call last):
  File "$(BUILD_DIR)/stem/descriptor/__init__.py", line 236, in decompress
    return self._decompression_func(self._module, content)
  File "$(BUILD_DIR)/stem/descriptor/__init__.py", line 247, in _zstd_decompress
    with module.ZstdDecompressor().write_to(output_buffer) as decompressor:
AttributeError: module 'zstd' has no attribute 'ZstdDecompressor'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "$(BUILD_DIR)/test/unit/descriptor/compression.py", line 26, in test_decompress_zstd
    self._check_file(Compression.ZSTD, 'compressed_zstd')
  File "$(BUILD_DIR)/test/unit/descriptor/compression.py", line 38, in _check_file
    content = compression.decompress(compressed_file.read())
  File "$(BUILD_DIR)/stem/descriptor/__init__.py", line 238, in decompress
    raise IOError('Failed to decompress as %s: %s' % (self, exc))
OSError: Failed to decompress as zstd: module 'zstd' has no attribute 'ZstdDecompressor'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions