Skip to content

Commit 33b7f46

Browse files
committed
FIX: Fine
1 parent 0aa69d1 commit 33b7f46

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

mne/stats/tests/test_cluster_level.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Copyright the MNE-Python contributors.
44

55
import os
6-
import platform
76
from functools import partial
87

98
import numpy as np
@@ -119,10 +118,11 @@ def test_thresholds(numba_conditional):
119118

120119
def test_cache_dir(tmp_path, numba_conditional):
121120
"""Test use of cache dir."""
122-
# On Intel Python 3.13.10 this fails
123-
if platform.system() == "Darwin" and platform.machine() == "x86_64":
124-
pytest.skip("Skipping test on Intel macOS")
125121
tempdir = str(tmp_path)
122+
# We get errors if the tempdir is too long, so print it in case in the future it
123+
# fails again we'll know why. In the meantime on macOS CIs (where it's an issue)
124+
# we can set PYTEST_DEBUG_TEMPROOT to /tmp to shorten it.
125+
print(len(tempdir), tempdir)
126126
orig_dir = os.getenv("MNE_CACHE_DIR", None)
127127
orig_size = os.getenv("MNE_MEMMAP_MIN_SIZE", None)
128128
rng = np.random.RandomState(0)

tools/github_actions_env_vars.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ else # conda-like
2929
echo "MNE_QT_BACKEND=PySide6" | tee -a $GITHUB_ENV
3030
# TODO: Also need "|unreliable on GitHub Actions conda" on macOS, but omit for now to make sure the failure actually shows up
3131
echo "MNE_TEST_ALLOW_SKIP=.*(Requires (spm|brainstorm) dataset|CUDA not|PySide6 causes segfaults|Accelerate|Flakey verbose behavior).*" | tee -a $GITHUB_ENV
32+
# Our cache_dir test has problems when the path is too long, so prevent it from getting too long
33+
if [[ "$RUNNER_OS" == "macOS" ]]; then
34+
echo "PYTEST_DEBUG_TEMPROOT=/tmp" | tee -a $GITHUB_ENV
3235
fi
3336
fi
3437
set +x

0 commit comments

Comments
 (0)