Skip to content

Commit 9d2f771

Browse files
committed
FIX: No need
1 parent 4ac59bf commit 9d2f771

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

mne/gui/tests/test_gui_api.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
pytest.importorskip("nibabel")
1212

1313

14-
def test_gui_api(renderer_notebook, nbexec, *, n_warn=0, backend="qt"):
14+
def test_gui_api(renderer_notebook, nbexec, *, backend="qt"):
1515
"""Test GUI API."""
1616
import contextlib
17-
import sys
1817
import warnings
1918

2019
import mne
@@ -25,7 +24,6 @@ def test_gui_api(renderer_notebook, nbexec, *, n_warn=0, backend="qt"):
2524
except Exception:
2625
# Notebook standalone mode
2726
backend = "notebook"
28-
n_warn = 0
2927
# nbexec does not expose renderer_notebook so I use a
3028
# temporary variable to synchronize the tests
3129
if backend == "notebook":
@@ -44,8 +42,7 @@ def test_gui_api(renderer_notebook, nbexec, *, n_warn=0, backend="qt"):
4442
with mne.utils._record_warnings() as w:
4543
renderer._window_set_theme("dark")
4644
w = [ww for ww in w if "is not yet supported" in str(ww.message)]
47-
if sys.platform != "darwin": # sometimes this is fine
48-
assert len(w) == n_warn, [ww.message for ww in w]
45+
assert len(w) == 0, [ww.message for ww in w]
4946

5047
# window without 3d plotter
5148
if backend == "qt":
@@ -387,10 +384,9 @@ def _check_widget_trigger(
387384
def test_gui_api_qt(renderer_interactive_pyvistaqt):
388385
"""Test GUI API with the Qt backend."""
389386
_, api = _check_qt_version(return_api=True)
390-
n_warn = int(api in ("PySide6", "PyQt6"))
391387
# TODO: After merging https://github.com/mne-tools/mne-python/pull/11567
392388
# The Qt CI run started failing about 50% of the time, so let's skip this
393389
# for now.
394390
if api == "PySide6":
395391
pytest.skip("PySide6 causes segfaults on CIs sometimes")
396-
test_gui_api(None, None, n_warn=n_warn, backend="qt")
392+
test_gui_api(None, None, backend="qt")

0 commit comments

Comments
 (0)