micropython/tests/unicode/file_invalid.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
130 B
Python
Raw Normal View History

try:
f = open("unicode/data/utf-8_invalid.txt", encoding="utf-8")
f.read()
except UnicodeError:
print("UnicodeError")