From eadad4b5ea11833a4a38269bf09ad27b72284ec2 Mon Sep 17 00:00:00 2001 From: Michael Scott Asato Cuthbert Date: Sat, 24 Oct 2026 18:22:21 -1000 Subject: [PATCH] Silence configure performAction tests _performActionSettings mocked environment get/set but not writeToUser, so the single-process runner printed 'MusicXML Reader set to...' lines. AI-assisted (Claude) --- music21/configure.py | 1 + 1 file changed, 1 insertion(+) diff --git a/music21/configure.py b/music21/configure.py index 112942bc6..0add24551 100644 --- a/music21/configure.py +++ b/music21/configure.py @@ -1609,6 +1609,7 @@ def _performActionSettings(self, reader, currentPNGPath, foundMuseScore): current = {'musicxmlPath': reader, 'musescoreDirectPNGPath': currentPNGPath} newSettings = {} with (mock.patch('music21.configure.reload'), + mock.patch('music21.configure.writeToUser'), mock.patch('music21.environment.set', side_effect=newSettings.__setitem__), mock.patch('music21.environment.get', side_effect=current.__getitem__),