Skip to content

Commit b8304a2

Browse files
committed
Change hitachi test to error instead of warn on mbll without channel locations
1 parent 55c297b commit b8304a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mne/io/hitachi/tests/test_hitachi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def test_hitachi_basic(
226226
want = [np.nan] * (n_ch - 4)
227227
assert_allclose(distances, want, atol=0.0)
228228
raw_od_bad = optical_density(raw)
229-
with pytest.warns(RuntimeWarning, match="will be zero"):
229+
with pytest.raises(ValueError, match="all zero or NaN"):
230230
beer_lambert_law(raw_od_bad, ppf=6)
231231
# bad distances (too big)
232232
if versions[0] == "1.18" and len(fnames) == 1:

0 commit comments

Comments
 (0)