aboutsummaryrefslogtreecommitdiff
path: root/tests/unicode/file1.py
diff options
context:
space:
mode:
authorstijn2014-10-04 08:54:16 +0200
committerPaul Sokolovsky2014-10-21 22:10:38 +0300
commita3efe04dce9d5b4602b40414d3a23516ead85bc0 (patch)
treea51f3513a5ce16cfe3bc75bf4bf00dae5af55528 /tests/unicode/file1.py
parent2fe4cf7761ffc40d81b4780d59c2b6ef0a5c16ff (diff)
Use mode/encoding kwargs in io and unicode tests
mode argument is used to assert it works encoding argument is used to make sure CPython uses the correct encoding as it does not automatically use utf-8
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 554e88674..08b7d2504 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))