mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 02:03:55 -05:00
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>