mirror of
https://github.com/micropython/micropython.git
synced 2026-05-03 06:10:14 +02:00
tests/unicode: Add test for invalid utf-8 file contents.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
committed by
Damien George
parent
6c3d8d38bf
commit
bd4e45fd68
@@ -0,0 +1 @@
|
||||
aa�bb
|
||||
@@ -0,0 +1,5 @@
|
||||
try:
|
||||
f = open("unicode/data/utf-8_invalid.txt", encoding="utf-8")
|
||||
f.read()
|
||||
except UnicodeError:
|
||||
print("UnicodeError")
|
||||
Reference in New Issue
Block a user