Skip to content

Commit 696f362

Browse files
committed
test: skip sensitivity report test without nibabel
1 parent e81e207 commit 696f362

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

mne/report/tests/test_report.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ def test_add_forward_sensitivity_parameter():
562562
@testing.requires_testing_data
563563
def test_add_forward_sensitivity_matplotlib(monkeypatch):
564564
"""Test rendering forward sensitivity maps with the Matplotlib fallback."""
565+
pytest.importorskip("nibabel")
565566
monkeypatch.setattr(report_mod, "get_3d_backend", lambda: None)
566567
report = Report(subjects_dir=subjects_dir, image_format="png")
567568
report.add_forward(

0 commit comments

Comments
 (0)