summaryrefslogtreecommitdiff
path: root/tests/basics/sys1.py
AgeCommit message (Collapse)Author
2020-09-04all: Rename "sys" module to "usys".stijn
This is consistent with the other 'micro' modules and allows implementing additional features in Python via e.g. micropython-lib's sys. Note this is a breaking change (not backwards compatible) for ports which do not enable weak links, as "import sys" must now be replaced with "import usys".
2019-11-04py/modsys: Report .mpy version in sys.implementation.Damien George
This commit adds a sys.implementation.mpy entry when the system supports importing .mpy files. This entry is a 16-bit integer which encodes two bytes of information from the header of .mpy files that are supported by the system being run: the second and third bytes, .mpy version, and flags and native architecture. This allows determining the supported .mpy file dynamically by code, and also for the user to find it out by inspecting this value. It's further possible to dynamically detect if the system supports importing .mpy files by `hasattr(sys.implementation, 'mpy')`.
2019-10-29tests/basics: Split sys.exit test to separate file so it can be skipped.Damien George
2019-05-03tests/basics/sys1.py: Add test for calling sys.exit() without any args.Damien George
2017-06-10tests/basics: Convert "sys.exit()" to "raise SystemExit".Paul Sokolovsky
2017-02-15tests/basic/: Make various tests skippable.Paul Sokolovsky
To run the testsuite on small ports.
2015-10-02tests: Allow tests to pass against CPython 3.5.Damien George
All breaking changes going from 3.4 to 3.5 are contained in basics/python34.py.
2015-04-22tests: Add tests for attrtuple, and for more corner cases.Damien George
2015-04-04tests: Add missing tests for builtins, and many other things.Damien George