summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-05-07 13:56:01 +1000
committerDamien George <damien@micropython.org>2025-05-12 13:33:42 +1000
commit487c94c2532ebb1b346afb92cb79a6b561e064be (patch)
tree7a23efd443521072348001dd1b9f7318fcaffd1c
parentf7c53cd221a4d8b1a7b3098ab71db06d00da51ad (diff)
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 <damien@micropython.org>
-rw-r--r--tests/extmod/vfs_rom.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/extmod/vfs_rom.py b/tests/extmod/vfs_rom.py
index 770b6863b..cd14542ea 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):