From 487c94c2532ebb1b346afb92cb79a6b561e064be Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 7 May 2025 13:56:01 +1000 Subject: [PATCH] tests/extmod/vfs_rom.py: Clear sys.path before running test. Otherwise if the target has certain files/directories (such as "test") in its filesystem then these interfere with the unit tests. Signed-off-by: Damien George --- tests/extmod/vfs_rom.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/extmod/vfs_rom.py b/tests/extmod/vfs_rom.py index 770b6863b9..cd14542ea6 100644 --- a/tests/extmod/vfs_rom.py +++ b/tests/extmod/vfs_rom.py @@ -394,6 +394,7 @@ class TestMounted(TestBase): def setUp(self): self.orig_sys_path = list(sys.path) self.orig_cwd = os.getcwd() + sys.path = [] vfs.mount(vfs.VfsRom(self.romfs), "/test_rom") def tearDown(self):