cubicweb/server/test/unittest_undo.py
changeset 12567 26744ad37953
parent 12146 d540defa0591
--- a/cubicweb/server/test/unittest_undo.py	Fri Apr 05 17:21:14 2019 +0200
+++ b/cubicweb/server/test/unittest_undo.py	Fri Apr 05 17:58:19 2019 +0200
@@ -17,8 +17,6 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 
-from six import text_type
-
 from cubicweb import ValidationError
 from cubicweb.devtools.testlib import CubicWebTC
 from cubicweb.server.session import Connection
@@ -254,7 +252,7 @@
                 "%s doesn't exist anymore." % g.eid])
             with self.assertRaises(ValidationError) as cm:
                 cnx.commit()
-            cm.exception.translate(text_type)
+            cm.exception.translate(str)
             self.assertEqual(cm.exception.entity, self.totoeid)
             self.assertEqual(cm.exception.errors,
                               {'in_group-subject': u'at least one relation in_group is '
@@ -458,9 +456,9 @@
 class UndoExceptionInUnicode(CubicWebTC):
 
     # problem occurs in string manipulation for python < 2.6
-    def test___unicode__method(self):
+    def test___str__method(self):
         u = _UndoException(u"voilĂ ")
-        self.assertIsInstance(text_type(u), text_type)
+        self.assertIsInstance(str(u), str)
 
 
 if __name__ == '__main__':