summaryrefslogtreecommitdiffstatshomepage
path: root/tests/unicode/file1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unicode/file1.py')
-rw-r--r--tests/unicode/file1.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unicode/file1.py b/tests/unicode/file1.py
index 554e886743..08b7d25041 100644
--- a/tests/unicode/file1.py
+++ b/tests/unicode/file1.py
@@ -1,4 +1,4 @@
-f = open("unicode/data/utf-8_1.txt")
+f = open("unicode/data/utf-8_1.txt", encoding="utf-8")
l = f.readline()
print(l)
print(len(l))