summaryrefslogtreecommitdiff
path: root/tests/micropython/const2.py
AgeCommit message (Collapse)Author
2016-09-27py/modmicropython: Add micropython.const, alias for identity function.Damien George
Having a micropython.const identity function, and writing "from micropython import const" at the start of scripts that use the const feature, allows to write scripts which are compatible with CPython, and with uPy builds that don't include const optimisation. This patch adds such a function and updates the tests to do the import.
2016-09-27tests/micropython: Add tests for const names being replaced in parser.Damien George