dataimport/test/unittest_importer.py
changeset 10807 bb0c7dbd1fe7
parent 10514 b29d9904482e
child 10809 359cbdf3a515
--- a/dataimport/test/unittest_importer.py	Wed Oct 14 16:30:45 2015 +0200
+++ b/dataimport/test/unittest_importer.py	Fri Oct 16 17:06:28 2015 +0200
@@ -167,7 +167,7 @@
 
 def extentities_from_csv(fpath):
     """Yield ExtEntity read from `fpath` CSV file."""
-    with open(fpath) as f:
+    with open(fpath, 'rb') as f:
         for uri, name, knows in ucsvreader(f, skipfirst=True, skip_empty=False):
             yield ExtEntity('Personne', uri,
                             {'nom': set([name]), 'connait': set([knows])})