From 9ba20319255c54ef8ecf2a41755c673d84590109 Mon Sep 17 00:00:00 2001 From: Miles Granger Date: Sat, 2 Nov 2024 17:11:53 +0100 Subject: [PATCH] Fix 64bit-only experimental modules in tests --- tests/test_variants.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/test_variants.py b/tests/test_variants.py index d65a0972..0209d893 100644 --- a/tests/test_variants.py +++ b/tests/test_variants.py @@ -22,11 +22,10 @@ for experimental_feat in ("blosc2", "igzip", "ideflate", "izlib"): if not hasattr(cramjam, experimental_feat) and hasattr(cramjam, "experimental"): - mod = getattr(cramjam.experimental, experimental_feat) - setattr(cramjam, experimental_feat, mod) - - if hasattr(cramjam, experimental_feat): - VARIANTS = (*VARIANTS, experimental_feat) + mod = getattr(cramjam.experimental, experimental_feat, None) + if mod: + setattr(cramjam, experimental_feat, mod) + VARIANTS = (*VARIANTS, experimental_feat) # Some OS can be slow or have higher variability in their runtimes on CI settings.register_profile("local", deadline=None, max_examples=20)