cubicweb/hooks/test/unittest_syncsession.py
changeset 12567 26744ad37953
parent 12126 be8636d12afd
--- a/cubicweb/hooks/test/unittest_syncsession.py	Fri Apr 05 17:21:14 2019 +0200
+++ b/cubicweb/hooks/test/unittest_syncsession.py	Fri Apr 05 17:58:19 2019 +0200
@@ -22,8 +22,6 @@
   syncschema.py hooks are mostly tested in server/test/unittest_migrations.py
 """
 
-from six import text_type
-
 from cubicweb import ValidationError
 from cubicweb.devtools.testlib import CubicWebTC
 
@@ -35,13 +33,13 @@
             with self.assertRaises(ValidationError) as cm:
                 req.execute('INSERT CWProperty X: X pkey "bla.bla", '
                             'X value "hop", X for_user U')
-            cm.exception.translate(text_type)
+            cm.exception.translate(str)
             self.assertEqual(cm.exception.errors,
                              {'pkey-subject': 'unknown property key bla.bla'})
 
             with self.assertRaises(ValidationError) as cm:
                 req.execute('INSERT CWProperty X: X pkey "bla.bla", X value "hop"')
-            cm.exception.translate(text_type)
+            cm.exception.translate(str)
             self.assertEqual(cm.exception.errors,
                              {'pkey-subject': 'unknown property key bla.bla'})