forked from pool/python-cramjam
* Initial impl zero-copy Buffer by @milesgranger in #209 * Buffer: Fix extended and negative int reads by @milesgranger in #210 * Initial Type/JavaScript support by @milesgranger in #217 * Fix lz4.decompress_block_into w/o prepended size by @milesgranger in #219 * Add typing stub files and proper docs site by @milesgranger in #220 * Ban mutating immutable buffers on the free-threaded build by @ngoldbaum in #214 * zstd: store size by @milesgranger in #225 * Add Python 3.14/t - Drop Python 3.8 by @milesgranger in #226 - Release 2.10.0 * Remove experimental codecs in default builds by @milesgranger in #197 * Bump libcramjam -> 0.7.0 by @milesgranger in #198 * Update PyO3 to 0.24 by @musicinmybrain in #207 - Disable test_variants_raise_exception[deflate] * gh#milesgranger/cramjam#211 - Disable blosc2 because it fails to compile right now and upstream degraded it from the default feature set to experimental * gh#milesgranger/cramjam#197 - Add debuginfo OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cramjam?expand=0&rev=15
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
Index: cramjam-2.11.0/tests/test_variants.py
|
|
===================================================================
|
|
--- cramjam-2.11.0.orig/tests/test_variants.py
|
|
+++ cramjam-2.11.0/tests/test_variants.py
|
|
@@ -104,7 +104,7 @@ def test_variants_raise_exception(varian
|
|
"output_type", (bytes, bytearray, "numpy", cramjam.Buffer, cramjam.File, memoryview)
|
|
)
|
|
@pytest.mark.parametrize("variant_str", VARIANTS)
|
|
-@given(raw_data=st.binary())
|
|
+@given(raw_data=st.binary(min_size=2))
|
|
def test_variants_compress_into(
|
|
variant_str,
|
|
input_type,
|
|
@@ -181,7 +181,7 @@ def test_variants_compress_into(
|
|
"output_type", (bytes, bytearray, "numpy", cramjam.Buffer, cramjam.File, memoryview)
|
|
)
|
|
@pytest.mark.parametrize("variant_str", VARIANTS)
|
|
-@given(raw_data=st.binary())
|
|
+@given(raw_data=st.binary(min_size=2))
|
|
def test_variants_decompress_into(
|
|
variant_str,
|
|
input_type,
|
|
@@ -191,9 +191,6 @@ def test_variants_decompress_into(
|
|
is_pypy,
|
|
is_free_threaded,
|
|
):
|
|
- if variant_str == "izlib" and output_type == "memoryview":
|
|
- pytest.skip("See issue https://github.com/milesgranger/cramjam/issues/193")
|
|
-
|
|
variant = getattr(cramjam, variant_str)
|
|
|
|
compressed = variant.compress(raw_data)
|