circuitpython/tests/basics/module2.py

7 lines
135 B
Python

# uPy behaviour only: builtin modules are read-only
import usys
try:
usys.x = 1
except AttributeError:
print("AttributeError")