tests/ports/unix: Add coverage test for frozen functions and generators.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2024-02-12 23:07:48 +11:00
parent a3a73b64a3
commit 5a3dd8c791
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
# Test importing frozen functions.
# A simple bytecode function with no children.
def f():
return 1
print(__name__, f())
# A simple bytecode generator with no children.
def g():
yield 2
print(__name__, next(g()))