From 4b1d18c77daa7c37aa480ba229e0e9f1b22b2321 Mon Sep 17 00:00:00 2001 From: Clemens Brunner Date: Fri, 29 May 2026 12:41:35 +0200 Subject: [PATCH 1/2] Remove test_io_set_preload_false_is_faster --- mne/io/eeglab/tests/test_eeglab.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/mne/io/eeglab/tests/test_eeglab.py b/mne/io/eeglab/tests/test_eeglab.py index a042566fbc9..1aa98fa5b66 100644 --- a/mne/io/eeglab/tests/test_eeglab.py +++ b/mne/io/eeglab/tests/test_eeglab.py @@ -768,26 +768,6 @@ def test_eeglab_drop_nan_annotations(tmp_path): raw = read_raw_eeglab(file_path, preload=True) -@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 -def test_io_set_preload_false_is_faster(): - """Using preload=False should skip the expensive data read branch.""" - # warm start - read_raw_eeglab(raw_fname_mat, preload=False) - - durations = {} - for preload in (True, False): - start = time.perf_counter() - _ = read_raw_eeglab(raw_fname_mat, preload=preload) - durations[preload] = time.perf_counter() - start - - # preload=True should not be faster than preload=False (timings may vary - # across systems, so avoid strict thresholds) - assert durations[True] > durations[False] - - @testing.requires_testing_data def test_lazy_vs_preload_integrity(): """Test that lazy loading produces identical data to preload.""" From 82a311c8ea0c0953e20794a1262b0a7760f111e1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 29 May 2026 10:47:44 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mne/io/eeglab/tests/test_eeglab.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mne/io/eeglab/tests/test_eeglab.py b/mne/io/eeglab/tests/test_eeglab.py index 1aa98fa5b66..570f2859ee2 100644 --- a/mne/io/eeglab/tests/test_eeglab.py +++ b/mne/io/eeglab/tests/test_eeglab.py @@ -4,7 +4,6 @@ import os import shutil -import time from copy import deepcopy import numpy as np