import micropython as micropython
# check we can get and set the level
micropython.opt_level(0)
print(micropython.opt_level())
micropython.opt_level(1)
# check that the optimisation levels actually differ
exec("print(__debug__)")
exec("assert 0")