Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions mne/_fiff/tests/test_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import numpy as np
import pooch
import pytest
from flaky import flaky

from mne._fiff.constants import (
FIFF,
Expand Down Expand Up @@ -118,7 +117,7 @@
)


@flaky
@pytest.mark.flaky
@requires_good_network
@pytest.mark.ultraslowtest # not that slow, just doesn't need to run very often
def test_constants(tmp_path):
Expand Down
3 changes: 1 addition & 2 deletions mne/channels/tests/test_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import numpy as np
import pooch
import pytest
from flaky import flaky
from numpy.testing import assert_allclose, assert_array_equal, assert_equal
from scipy.io import savemat

Expand Down Expand Up @@ -359,7 +358,7 @@ def test_read_ch_adjacency(tmp_path):

# This test is ~15s long across all montages, and we shouldn't need to check super
# often for mismatches. So let's mark it ultraslowtest so only one CI runs it.
@flaky
@pytest.mark.flaky
@pytest.mark.ultraslowtest
@requires_good_network
@pytest.mark.parametrize("adj", _CHECK_ADJ)
Expand Down
3 changes: 1 addition & 2 deletions mne/io/eeglab/tests/test_eeglab.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import numpy as np
import pytest
from flaky import flaky
from numpy.testing import (
assert_allclose,
assert_array_almost_equal,
Expand Down Expand Up @@ -769,7 +768,7 @@ def test_eeglab_drop_nan_annotations(tmp_path):
raw = read_raw_eeglab(file_path, preload=True)


@flaky
@pytest.mark.flaky
@testing.requires_testing_data
@pytest.mark.timeout(10)
@pytest.mark.slowtest # has the advantage of not running on macOS where it errs a lot
Expand Down
3 changes: 1 addition & 2 deletions mne/utils/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from urllib.error import URLError

import pytest
from flaky import flaky

import mne
import mne.utils.config
Expand Down Expand Up @@ -179,7 +178,7 @@ def test_get_subjects_dir(tmp_path, monkeypatch):
get_subjects_dir(raise_error=True)


@flaky(max_runs=3)
@pytest.mark.flaky(reruns=3)
@pytest.mark.ultraslowtest # not ultraslow, just flaky and not changed often
@requires_good_network
def test_sys_info_check_outdated(monkeypatch):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ doc = [
]
test = [
"codespell",
"flaky",
"ipython != 8.7.0", # for testing notebook backend; also in "full-no-qt" and "doc"
"mypy",
"numpydoc",
"pre-commit",
"pytest >= 8.0",
"pytest-cov",
"pytest-qt",
"pytest-rerunfailures",
"pytest-timeout",
"ruff",
"toml-sort",
Expand Down
Loading