tests/unix: Add coverage test for freezing various objects.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
5c46721a1c
commit
c4b8dae438
6
ports/unix/variants/coverage/frzmpy/frzmpy3.py
Normal file
6
ports/unix/variants/coverage/frzmpy/frzmpy3.py
Normal 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")
|
@ -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
|
||||
|
||||
|
@ -174,4 +174,9 @@ frzstr_pkg2.mod
|
||||
frzmpy_pkg2.mod
|
||||
1
|
||||
ZeroDivisionError
|
||||
\
|
||||
|
||||
X
|
||||
'\x1b'
|
||||
b'\x00\xff'
|
||||
NULL
|
||||
|
Loading…
Reference in New Issue
Block a user