Skip to content

Commit 57dfe1e

Browse files
committed
FIX: Argh
1 parent dc5ba04 commit 57dfe1e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mne_qt_browser/tests/test_pg_specific.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,12 @@ def test_pg_settings_dialog(raw_orig, pg_backend):
337337
# Could be 6008 or 6006 depending on if MNE-Python has
338338
# https://github.com/mne-tools/mne-qt-browser/pull/320 (1.10+)
339339
assert fig.mne.data.shape[1] in (6006, 6007, 6008)
340-
downsampling_control.setValue(7) # does not evenly divide into the data length
340+
assert (
341+
fig.mne.data.shape[1] % 11 != 0
342+
) # does not evenly divide into the data length
343+
downsampling_control.setValue(11)
341344
QTest.qWait(100)
342-
assert downsampling_control.value() == 7
345+
assert downsampling_control.value() == 11
343346
assert downsampling_control.value() == fig.mne.downsampling
344347

345348
QTest.qWait(100)

0 commit comments

Comments
 (0)