Skip to content

Commit c7b428c

Browse files
TimoLassmannclaude
andcommitted
Skip downstream benchmark tests when benchmarks package unavailable
These tests require the benchmarks/ package on sys.path which is only available when running from the repo root. They now skip gracefully in CI and pip-installed environments. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 150ee01 commit c7b428c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

tests/python/test_downstream_foundation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
import pytest
1313

14+
pytest.importorskip("benchmarks", reason="benchmarks package not on sys.path (run from repo root)")
15+
1416

1517
# ======================================================================
1618
# provenance.py

tests/python/test_downstream_integration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
import pytest
1616

17+
pytest.importorskip("benchmarks", reason="benchmarks package not on sys.path (run from repo root)")
18+
1719

1820
# ======================================================================
1921
# Module import tests

0 commit comments

Comments
 (0)