summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/struct_micropython.py
Commit message (Collapse)AuthorAge
* py/modstruct: In struct.pack, stop converting if there are no args left.Damien George2017-09-01
| | | | | | This patch makes a repeat counter behave the same as repeating the typecode, when there are not enough args. For example: struct.pack('2I', 1) now behave the same as struct.pack('II', 1).
* tests/basics: Convert "sys.exit()" to "raise SystemExit".Paul Sokolovsky2017-06-10
|
* tests/basics/struct_micropython: Add test for 'S' typecode in ustruct.Damien George2017-03-14
| | | | | | | | The 'S' typecode is a uPy extension so it should be grouped with the other extension (namely 'O' typecode). Testing 'S' needs uctypes which is an extmod module and not always available, so this test is made optional and will only be run on ports that have (u)struct and uctypes. Otherwise it will be silently skipped.
* tests/basics: Add tests to improve coverage of binary.c.Rami Ali2016-12-28