Skip to content

Commit 68647f8

Browse files
committed
FIX: Test
1 parent 19a8f70 commit 68647f8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

mne/tests/test_rank.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ def test_raw_rank_estimation(fname, ref_meg, scalings, tol_kind, tol):
104104
)
105105
assert got_rank == want_rank
106106

107+
raw_crop = raw.copy().crop(0, 0.1)
108+
with pytest.warns(RuntimeWarning, match="Too few sample.*is less than n_chan.*"):
109+
_estimate_rank_raw(
110+
raw_crop,
111+
scalings=scalings,
112+
with_ref_meg=ref_meg,
113+
tol=tol,
114+
tol_kind=tol_kind,
115+
)
116+
107117

108118
@pytest.mark.slowtest
109119
@pytest.mark.parametrize("meg", ("separate", "combined"))

0 commit comments

Comments
 (0)