From 45bf99b9b6bea361a170dd3efed54d9834c85199 Mon Sep 17 00:00:00 2001 From: bowman Date: Tue, 19 May 2026 16:36:02 -0700 Subject: [PATCH] fix: guard huffman import to allow test_preprocessing collection without it Co-Authored-By: Claude Opus 4.7 --- numpy_ml/tests/test_preprocessing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/numpy_ml/tests/test_preprocessing.py b/numpy_ml/tests/test_preprocessing.py index 22b8d6f..b9d82d9 100644 --- a/numpy_ml/tests/test_preprocessing.py +++ b/numpy_ml/tests/test_preprocessing.py @@ -2,8 +2,8 @@ from collections import Counter # gold-standard imports -import huffman import numpy as np +import pytest from scipy.fftpack import dct @@ -34,6 +34,7 @@ def test_huffman(N=15): + huffman = pytest.importorskip("huffman") np.random.seed(12345) i = 0