From 88324d595e6eb01d04c307bf3a80979d1b656722 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Tue, 27 Oct 2026 06:10:31 +0100 Subject: [PATCH] fix: keep the host system out of a from test On a WSL host the in-process run turned drive letters on for every test after it, and three TUI tests failed in the combined suite. --- tests/test_install_from.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_install_from.py b/tests/test_install_from.py index 75651b95a..2ddb97e7e 100644 --- a/tests/test_install_from.py +++ b/tests/test_install_from.py @@ -896,7 +896,10 @@ class AFolderAroundTheBiosFolder(FromFolder): argv = ["install.py", "--platform", "retroarch", "--dest", str(bios), "--manifest", str(self.list), "--from", str(card), "--no-input", "--yes"] out = io.StringIO() + # The host's own system: on WSL the run turned drive letters on for + # every test after it. with mock.patch.object(sys, "argv", argv), \ + mock.patch.object(install, "detect_os", return_value="linux"), \ mock.patch.dict(os.environ, {"RETROBIOS_INSTALL_OFFLINE": "1"}), \ mock.patch.object(os, "replace", refusing(real_replace)), \ mock.patch.object(os, "rename", refusing(real_rename)), \