lable < 4 * d_kwargs['buffer_size']: # The internal LZ4 context will request at least 3 times buffer_size # as memory (2 buffer_size for the double-buffer, and 1.x buffer_size # for the output buffer), so round up to 4 buffer_size. pytest.skip('Insufficient system memory for this test') # Make sure the page size is larger than what the input bound will be, # but still fit in 4 bytes d_kwargs['buffer_size'] -= 1 # No failure expected during instanciation/initialization > lz4.stream.LZ4StreamDecompressor(**d_kwargs) d_kwargs = {'buffer_size': 4294967295, 'store_comp_size': 4, 'strategy': 'double_buffer'} store_comp_size = {'store_comp_size': 4} tests/stream/test_stream_1.py:199: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = strategy = 'double_buffer', buffer_size = 4294967295, return_bytearray = 0 store_comp_size = 4, dictionary = '' def __init__(self, strategy, buffer_size, return_bytearray=False, store_comp_size=4, dictionary=""): """ Instantiates and initializes a LZ4 stream decompression context. Args: strategy (str): Buffer management strategy. Can be: ``double_buffer``. buffer_size (int): Size of one buffer of the double-buffer used internally for stream decompression in the case of ``double_buffer`` strategy. Keyword Args: return_bytearray (bool): If ``False`` (the default) then the function will return a ``bytes`` object. If ``True``, then the function will return a ``bytearray`` object. store_comp_size (int): Specify the size in bytes of the following compressed block. Can be: ``1``, ``2`` or ``4`` (default: ``4``). dictionary (str, bytes or buffer-compatible object): If specified, perform decompression using this initial dictionary. Raises: Exceptions occuring during the context initialization. OverflowError: raised if the ``dictionary`` parameter is too large for the LZ4 context. ValueError: raised if some parameters are invalid. MemoryError: raised if some internal resources cannot be allocated. RuntimeError: raised if some internal resources cannot be initialized. """ return_bytearray = 1 if return_bytearray else 0 > self._context = _create_context(strategy, "decompress", buffer_size, return_bytearray=return_bytearray, store_comp_size=store_comp_size, dictionary=dictionary) E MemoryError: Could not allocate output buffer buffer_size = 4294967295 dictionary = '' return_bytearray = 0 self = store_comp_size = 4 strategy = 'double_buffer' lz4/stream/__init__.py:45: MemoryError ========== 1 failed, 69420 passed, 17360 skipped in 49310.86 seconds =========== error: Bad exit status from /var/tmp/rpm-tmp.gluN8j (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.gluN8j (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/python-lz4.spec