[dataimport/test] fix python2.6 syntax error
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 12 Feb 2016 15:19:59 +0100
changeset 11110 68477666401f
parent 11109 c361260fe191
child 11111 606d4fea99f5
[dataimport/test] fix python2.6 syntax error Don't use braces for set literals.
dataimport/test/unittest_importer.py
--- a/dataimport/test/unittest_importer.py	Fri Feb 12 14:09:38 2016 +0100
+++ b/dataimport/test/unittest_importer.py	Fri Feb 12 15:19:59 2016 +0100
@@ -132,7 +132,7 @@
             importer = self.importer(cnx)
             # First import
             richelieu = ExtEntity('Personne', 11,
-                                  {'nom': {u'Richelieu Diacre'}})
+                                  {'nom': set([u'Richelieu Diacre'])})
             importer.import_entities([richelieu])
             cnx.commit()
             rset = cnx.execute('Any X WHERE X is Personne')
@@ -140,7 +140,7 @@
             self.assertEqual(entity.nom, u'Richelieu Diacre')
             # Second import
             richelieu = ExtEntity('Personne', 11,
-                                  {'nom': {u'Richelieu Cardinal'}})
+                                  {'nom': set([u'Richelieu Cardinal'])})
             importer.import_entities([richelieu])
             cnx.commit()
             rset = cnx.execute('Any X WHERE X is Personne')