Files
micropython/tests/micropython/builtin_execfile.py.exp
Jeff Epler 4b013ec3ff extmod/vfs_reader: Check that open() resulted in a file-like object.
That is, an object whose type defines the protocol slot.

Note that due to protocol confusion, a variant of the original crasher that
returned e.g., a machine.Pin instance could still lead to a crash (#17852).

Fixes issue #17841.

Signed-off-by: Jeff Epler <jepler@gmail.com>
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2025-09-28 22:45:30 +10:00

11 lines
117 B
Plaintext

mount False False
open /noexist.py rb
OSError
open /test.py rb
123
TypeError
umount
mount False False
OSError
umount