1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
From: Boyuan Yang <byang@debian.org>
Date: Mon, 18 Aug 2025 11:24:48 -0400
Subject: Disable test_features
The version linked with system libzstd is known to fail this test.
See https://python-zstandard.readthedocs.io/en/latest/installing.html
Patch first drafted on 2022-06-26.
Forwarded: not-needed
Last-Update: 2025-08-18
---
tests/test_module_attributes.py | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/tests/test_module_attributes.py b/tests/test_module_attributes.py
index a718aa5..0c415a2 100644
--- a/tests/test_module_attributes.py
+++ b/tests/test_module_attributes.py
@@ -9,25 +9,6 @@ class TestModuleAttributes(unittest.TestCase):
self.assertEqual(zstd.__version__, "0.24.0")
- def test_features(self):
- self.assertIsInstance(zstd.backend_features, set)
-
- expected = {
- "cext": {
- "buffer_types",
- "multi_compress_to_buffer",
- "multi_decompress_to_buffer",
- },
- "cffi": set(),
- "rust": {
- "buffer_types",
- "multi_compress_to_buffer",
- "multi_decompress_to_buffer",
- },
- }[zstd.backend]
-
- self.assertEqual(zstd.backend_features, expected)
-
def test_constants(self):
self.assertEqual(zstd.MAX_COMPRESSION_LEVEL, 22)
self.assertEqual(zstd.FRAME_HEADER, b"\x28\xb5\x2f\xfd")
|