summaryrefslogtreecommitdiff
path: root/tests/unicode/file_invalid.py
blob: 5c42302519551ec90e6df39eee3ee1f9135e1343 (plain)
1
2
3
4
5
try:
    f = open("data/utf-8_invalid.txt", encoding="utf-8")
    f.read()
except UnicodeError:
    print("UnicodeError")