tests/unix: Add coverage test for freezing various objects.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2022-02-28 18:51:45 +11:00
parent 5c46721a1c
commit c4b8dae438
3 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,6 @@
# Test freezing objects that may not be handled well by the build process.
print("\\")
print("\nX")
print(repr("\x1b"))
print(b"\x00\xff")

View file

@ -89,6 +89,9 @@ try:
except ZeroDivisionError:
print("ZeroDivisionError")
# test importing various objects
import frzmpy3
# test for MP_QSTR_NULL regression
from frzqstr import returns_NULL

View file

@ -174,4 +174,9 @@ frzstr_pkg2.mod
frzmpy_pkg2.mod
1
ZeroDivisionError
\
X
'\x1b'
b'\x00\xff'
NULL