Files
Rocky 55b1d7f289 fix(mlsysim): skip viz test when matplotlib is not installed (#1608)
test_scorecard_plot_accepts_scenario_evaluation_quantities called
plot_evaluation_scorecard unconditionally but matplotlib is an optional
dep (mlsysim[viz]) — not installed in the base dev environment. This
caused a hard ImportError failure instead of a graceful skip.

Add pytest.importorskip("matplotlib") so the test is skipped when the
viz extra is absent and runs normally when matplotlib is present.

385 tests pass, 3 skipped in the base dev environment after this fix.

Co-authored-by: Vijay Janapa Reddi <vj@eecs.harvard.edu>
2026-04-30 19:03:54 -04:00
..