Skip to content

Add importorskip for optional test dependencies (jax, graphviz)#8089

Open
hrideymarwah15 wants to merge 1 commit intopymc-devs:mainfrom
hrideymarwah15:fix/dev-deps-7914
Open

Add importorskip for optional test dependencies (jax, graphviz)#8089
hrideymarwah15 wants to merge 1 commit intopymc-devs:mainfrom
hrideymarwah15:fix/dev-deps-7914

Conversation

@hrideymarwah15
Copy link

Fixes #7914

Tests for JAX and graphviz now gracefully skip when dependencies are not installed instead of failing with ModuleNotFoundError.

Changes:

  • tests/sampling/test_jax.py: Add pytest.importorskip for jax at module level
  • tests/test_model_graph.py: Add pytest.importorskip for graphviz in tests that use model_to_graphviz

This allows running the test suite without all optional dependencies.

@github-actions github-actions bot added the bug label Feb 3, 2026
Fixes pymc-devs#7914

Tests for JAX and graphviz now gracefully skip when dependencies are not
installed instead of failing with ModuleNotFoundError.

Changes:
- tests/sampling/test_jax.py: Add pytest.importorskip for jax at module level
- tests/test_model_graph.py: Add pytest.importorskip for graphviz in tests
  that use model_to_graphviz

This allows running the test suite without all optional dependencies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: various packages missing from dev dependencies

1 participant