Allow blosc2 to report the type used
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)
e.g. the bug had blosc2:blosclz

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1061043
Forwarded: no - upstream 55524 xfailed some but not all cases

Gbp-Pq: Name test_complibs_blosc2.patch

pandas/tests/io/pytables/test_file_handling.py

index e9d95cc34626cd3239fd64caab900687ac423ebd..732aeec6a79b2c39fd5f8db6fd08e4db0ac742b1 100644 (file)
@@ -268,7 +268,7 @@ def test_complibs(tmp_path, lvl, lib):
             if lvl == 0:
                 assert node.filters.complib is None
             else:
-                assert node.filters.complib == lib
+                assert ((node.filters.complib == lib) or (lib=='blosc2' and node.filters.complib.startswith('blosc2:')))
 
 
 @pytest.mark.xfail(condition=is_crashing_arch,reason="https://bugs.debian.org/790925",strict=False,run=False)