summaryrefslogtreecommitdiffstatshomepage
path: root/tests/unicode/file_invalid.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unicode/file_invalid.py')
-rw-r--r--tests/unicode/file_invalid.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unicode/file_invalid.py b/tests/unicode/file_invalid.py
new file mode 100644
index 0000000000..3f7f184062
--- /dev/null
+++ b/tests/unicode/file_invalid.py
@@ -0,0 +1,5 @@
+try:
+ f = open("unicode/data/utf-8_invalid.txt", encoding="utf-8")
+ f.read()
+except UnicodeError:
+ print("UnicodeError")