Skip to content

Improve test disk usage and I/O in tests - #14269

Merged
larsoner merged 2 commits into
mne-tools:mainfrom
larsoner:test-io-reuse
Sep 7, 2026
Merged

larsoner merged 2 commits into
mne-tools:mainfrom
larsoner:test-io-reuse

Conversation

@larsoner

@larsoner larsoner commented Sep 3, 2026

Copy link
Copy Markdown
Member

I/O companion to #14265, a few low-hanging fruit for speeding up tests further:

  • change some _TempDir to tmp_path
  • copy fewer files (e.g. for subjects_dir_tmp, only copy fsaverage when needed)
  • add some raw/event crops when the test can still test reasonably with less data
  • cache reads of small data and reuse them with .copy in fixtures

Changes drafted by Claude Fable 5 and reviewed/iterated on by me

@larsoner
larsoner requested a review from sappelhoff as a code owner September 3, 2026 13:26
@larsoner larsoner changed the title Improve test disk usage and I/O Improve test disk usage and I/O in tests Sep 3, 2026
@larsoner
larsoner merged commit 10e56da into mne-tools:main Sep 7, 2026
26 checks passed
@larsoner
larsoner deleted the test-io-reuse branch September 7, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant