Skip to content

Commit 50f0101

Browse files
committed
revert to using os.mount, etc. instead of vfs.mount
1 parent 4832683 commit 50f0101

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/run-natmodtests.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828

2929
# Code to allow a target MicroPython to import an .mpy from RAM
3030
injected_import_hook_code = """\
31-
import sys, io, vfs
31+
# CIRCUITPY-CHANGE: no vfs, but still have os
32+
import sys, io, os
3233
class __File(io.IOBase):
3334
def __init__(self):
3435
self.off = 0
@@ -50,7 +51,8 @@ def stat(self, path):
5051
raise OSError(-2) # ENOENT
5152
def open(self, path, mode):
5253
return __File()
53-
vfs.mount(__FS(), '/__remote')
54+
# CIRCUITPY-CHANGE: no vfs, but still have os
55+
os.mount(__FS(), '/__remote')
5456
sys.path.insert(0, '/__remote')
5557
sys.modules['{}'] = __import__('__injected')
5658
"""

0 commit comments

Comments
 (0)