diff options
Diffstat (limited to 'tests/micropython/import_mpy_native.py')
-rw-r--r-- | tests/micropython/import_mpy_native.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/micropython/import_mpy_native.py b/tests/micropython/import_mpy_native.py index 8f5de25a0..ac5e724e8 100644 --- a/tests/micropython/import_mpy_native.py +++ b/tests/micropython/import_mpy_native.py @@ -28,7 +28,9 @@ class UserFile(io.IOBase): return n def ioctl(self, req, arg): - return 0 + if req == 4: # MP_STREAM_CLOSE + return 0 + return -1 class UserFS: |