From d8eb6968f027a7dea8422f5a12a9fd9d26d07a27 Mon Sep 17 00:00:00 2001 From: stroblme Date: Sun, 1 Nov 2026 10:59:45 +0100 Subject: [PATCH] test_wren: load numpy itself, so the BLAS test passes alone --- backend/tests/flow/test_wren.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/tests/flow/test_wren.py b/backend/tests/flow/test_wren.py index 7539e8a..8e55f4e 100644 --- a/backend/tests/flow/test_wren.py +++ b/backend/tests/flow/test_wren.py @@ -401,9 +401,12 @@ def test_a_trained_model_is_read_from_the_artifact_store(fake_wren, tmp_path): def test_the_model_runs_on_one_blas_thread(fake_wren, monkeypatch): - """About twice as fast for a model this small; numpy is loaded by `mlp`.""" + """About twice as fast for a model this small.""" from threadpoolctl import threadpool_info + # BLAS is only listed once something has loaded it, as wren's numpy does. + pytest.importorskip("numpy") + threads: list[int] = [] act = fake_wren.act