circuitpython/tests/import/builtin_ext.py.exp
Jim Mussared dfa7677e2f tests/import/builtin_ext.py: Add test for built-in module override.
This verifies the behavior:
 - Exact matches of built-ins bypass filesystem.
 - u-prefix modules can be overridden from the filesystem.
 - Builtin import can be forced using either u-prefix or sys.path=[].

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-06-01 16:21:37 +10:00

11 lines
281 B
Plaintext

<module 'sys'> False
<module 'micropython'> False
<module 'sys'> False
<module 'sys'> False
os from filesystem
<module 'os' from 'ext/os.py'> True / 1
time from filesystem
<module 'time' from 'ext/time.py'> True <function> 1
<module 'uos'> False False
<module 'utime'> False False