[test] Add missing u''
authorRémi Cardona <remi.cardona@logilab.fr>
Mon, 23 Nov 2015 17:47:46 +0100
changeset 10896 ac64eeddd50a
parent 10894 c8c6ad8adbdb
child 10897 7c386161ebd6
[test] Add missing u'' Test actually works in py3k, but not in python 2... That has to be a first!
test/unittest_predicates.py
--- a/test/unittest_predicates.py	Wed Apr 22 16:09:04 2015 +0200
+++ b/test/unittest_predicates.py	Mon Nov 23 17:47:46 2015 +0100
@@ -497,7 +497,7 @@
     def setup_database(self):
         with self.admin_access.repo_cnx() as cnx:
             for i in range(30):
-                cnx.create_entity('CWGroup', name="group%d" % i)
+                cnx.create_entity('CWGroup', name=u"group%d" % i)
             cnx.commit()
 
     def test_paginated_rset(self):