diff options
| author | Damien George <damien@micropython.org> | 2025-05-07 13:56:01 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-05-12 13:33:42 +1000 |
| commit | 487c94c2532ebb1b346afb92cb79a6b561e064be (patch) | |
| tree | 7a23efd443521072348001dd1b9f7318fcaffd1c | |
| parent | f7c53cd221a4d8b1a7b3098ab71db06d00da51ad (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.py | 1 |
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): |
