Paul Sokolovsky
bc5bffbf65
tests/micropython/opt_level: Clarify the expected output for opt_level == 3.
2017-03-09 23:22:31 +01:00
Paul Sokolovsky
53018d5ad2
tests/micropython/heapalloc_traceback: Fix backtrace line # after refactor.
2017-03-09 12:51:45 +01:00
Paul Sokolovsky
1a71d30fb8
tests/micropython: Make uio-using tests skippable.
2017-03-09 10:26:31 +01:00
Paul Sokolovsky
c98d7461a1
tests/micropython/: Split off intbig tests.
2017-03-07 07:12:58 +01:00
Damien George
f62503dc47
tests/micropython: Add test for consts that are bignums.
2017-02-24 13:08:18 +11:00
Paul Sokolovsky
6fc6f10b1e
tests/heapalloc_exc_raise.py: Heap alloc test for raising/catching exc.
2017-02-20 04:22:32 +03:00
Damien George
7839b8b827
tests/micropython/heapalloc_iter: Add tests for contains and unpack.
2017-02-16 19:11:34 +11:00
Damien George
019048a6dc
tests/micropython: Add test for iterating with the heap locked.
2017-02-16 19:11:34 +11:00
Paul Sokolovsky
b32880bd51
tests/heapalloc_bytesio: Test for BytesIO with preallocates space.
2017-02-02 00:38:38 +03:00
Paul Sokolovsky
9ffc3ae0e7
tests/heapalloc_str: Test for alloc-free string operations.
...
Starts with concatenation with an empty string.
2017-01-27 00:49:39 +03:00
Paul Sokolovsky
bd3dd9296b
tests/heapalloc_int_from_bytes: Test that int.from_bytes() can work w/o alloc.
...
For a small number of bytes, it's expected to return a small int without
allocation.
2017-01-21 20:15:56 +03:00
Damien George
fb5838041b
tests/micropython/opt_level: Add test for opt_level 3.
2017-01-19 23:38:11 +11:00
Rami Ali
eae819c0ed
tests/micropython: Add test for micropython.stack_use() function.
2016-12-28 17:46:52 +11:00
Paul Sokolovsky
05aebb9206
tests/heapalloc_inst_call: Test for no alloc for simple object calls.
2016-12-25 00:50:27 +03:00
Damien George
7081ea4119
tests/micropython: Get heapalloc_traceback test running on baremetal.
...
When printing exceptions from files sent to a target by pyboard.py the
filename in the exception is <stdin>, which differs to when running the
script on the PC. So we strip out the filename to make the outputs the
same on all targets (see also misc/print_exception.py test).
2016-12-15 11:11:57 +11:00
Damien George
1f43d49f9e
tests/micropython: Move alloc-less traceback test to separate test file.
...
The native emitter doesn't provide proper traceback info so this test
should not be run in that case.
2016-11-21 17:39:23 +11:00
Damien George
d70f87aaa2
tests/micropython: Add test for creating traceback without allocation.
2016-11-21 17:10:17 +11:00
Damien George
679c0c4c83
tests/micropython: Add test for import from within viper function.
2016-11-10 22:54:55 +11:00
Damien George
34d0b3f85c
tests/micropython: Add tests for heap_lock, and emergency exceptions.
2016-10-14 00:32:34 +11:00
Damien George
5e22afce41
tests: Improve test coverage of py/compile.c.
2016-10-11 12:30:32 +11:00
Damien George
7f0e563de3
tests/micropython: Add test for micropython.opt_level() function.
2016-10-11 11:01:22 +11:00
Damien George
791b65f4b2
py/modmicropython: Add micropython.const, alias for identity function.
...
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-27 13:34:21 +10:00
Damien George
38b54b65d4
tests/micropython: Add tests for const names being replaced in parser.
2016-09-27 13:03:53 +10:00
Paul Sokolovsky
92a9078a6f
tests/meminfo: Update for addition of "max free sz" output.
2016-07-01 00:39:26 +03:00
Damien George
b1533c4366
py/parse: Treat constants that start with underscore as private.
...
Assignments of the form "_id = const(value)" are treated as private
(following a similar CPython convention) and code is no longer emitted
for the assignment to a global variable.
See issue #2111 .
2016-06-06 17:28:32 +01:00