File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 33# Copyright the MNE-Python contributors.
44
55import os
6- import platform
76from functools import partial
87
98import numpy as np
@@ -119,10 +118,11 @@ def test_thresholds(numba_conditional):
119118
120119def 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 )
Original file line number Diff line number Diff 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
3336fi
3437set +x
You can’t perform that action at this time.
0 commit comments