# HG changeset patch # User Julien Cristau # Date 1444057158 -7200 # Node ID 5b051dd4a4f5aee79dafe32eb921f9ebd791e440 # Parent 2ff5afce3216fdb9e45e7590366850a461cb1f58 [devtools/test] firstnames.txt is in latin1 diff -r 2ff5afce3216 -r 5b051dd4a4f5 devtools/test/unittest_dbfill.py --- a/devtools/test/unittest_dbfill.py Mon Oct 05 16:54:12 2015 +0200 +++ b/devtools/test/unittest_dbfill.py Mon Oct 05 16:59:18 2015 +0200 @@ -21,6 +21,7 @@ import os.path as osp import re import datetime +import io from six.moves import range @@ -52,7 +53,7 @@ return None def _available_Person_firstname(self, etype, attrname): - return [f.strip() for f in open(osp.join(DATADIR, 'firstnames.txt'))] + return [f.strip() for f in io.open(osp.join(DATADIR, 'firstnames.txt'), encoding='latin1')] def setUp(self): config = ApptestConfiguration('data', apphome=DATADIR)