summaryrefslogtreecommitdiff
path: root/tests/micropython/heapalloc.py
AgeCommit message (Collapse)Author
2022-04-15tests/micropython: Add tests that const tuples don't use the heap.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2020-03-30tests: Format all Python code with black, except tests in basics subdir.David Lechner
This adds the Python files in the tests/ directory to be formatted with ./tools/codeformat.py. The basics/ subdirectory is excluded for now so we aren't changing too much at once. In a few places `# fmt: off`/`# fmt: on` was used where the code had special formatting for readability or where the test was actually testing the specific formatting.
2017-12-11tests/heapalloc, heapalloc_super: Skip in strict stackless mode.Paul Sokolovsky
These tests involves testing allocation-free function calling, and in strict stackless mode, it's not possible to make a function call with heap locked (because function activation record aka frame is allocated on the heap).
2016-11-21tests/micropython: Move alloc-less traceback test to separate test file.Damien George
The native emitter doesn't provide proper traceback info so this test should not be run in that case.
2016-11-21tests/micropython: Add test for creating traceback without allocation.Damien George
2016-10-14tests/micropython: Add tests for heap_lock, and emergency exceptions.Damien George
2015-06-08py: Fallback to stack alloca for Python-stack if heap alloc fails.Damien George
If heap allocation for the Python-stack of a function fails then we may as well allocate the Python-stack on the C stack. This will allow to run more code without using the heap.
2014-10-31py: Make gc.enable/disable just control auto-GC; alloc is still allowed.Damien George
gc.enable/disable are now the same as CPython: they just control whether automatic garbage collection is enabled or not. If disabled, you can still allocate heap memory, and initiate a manual collection.
2014-05-31tests: Add feature test for when heap allocation is disabled.Damien George