Skip to content

Commit 6c02ae9

Browse files
authored
Update openlocationcode_test.py
1 parent 5bd7621 commit 6c02ae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/openlocationcode_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def setUp(self):
3838
self.testdata = []
3939
headermap = {0: 'fullcode', 1: 'lat', 2: 'lng', 3: 'shortcode', 4:'testtype'}
4040
tests_fn = 'test_data/shortCodeTests.csv'
41-
with open(tests_fn, "r") as fin:
41+
with open(tests_fn, 'r', encoding='utf-8') as fin:
4242
for line in fin:
4343
if line.startswith('#'):
4444
continue
@@ -61,7 +61,7 @@ def setUp(self):
6161
self.testdata = []
6262
headermap = {0: 'code', 1: 'lat', 2: 'lng', 3: 'latLo', 4: 'lngLo', 5: 'latHi', 6: 'longHi'}
6363
tests_fn = 'test_data/encodingTests.csv'
64-
with open(tests_fn, "r") as fin:
64+
with open(tests_fn, 'r', encoding='utf-8') as fin:
6565
for line in fin:
6666
if line.startswith('#'):
6767
continue

0 commit comments

Comments
 (0)