[py3k] unicode → six.text_type
authorRémi Cardona <remi.cardona@logilab.fr>
Tue, 22 Sep 2015 15:37:31 +0200
changeset 10734 e64738c093e5
parent 10733 9f66ac5eec1e
child 10735 cb83ba66fa61
[py3k] unicode → six.text_type
web/test/unittest_application.py
--- a/web/test/unittest_application.py	Mon Oct 12 21:06:45 2015 +0200
+++ b/web/test/unittest_application.py	Tue Sep 22 15:37:31 2015 +0200
@@ -19,6 +19,7 @@
 
 import base64
 
+from six import text_type
 from six.moves import http_client
 from six.moves.http_cookies import SimpleCookie
 
@@ -182,7 +183,7 @@
     def test_publish_validation_error(self):
         with self.admin_access.web_request() as req:
             user = self.user(req)
-            eid = unicode(user.eid)
+            eid = text_type(user.eid)
             req.form = {
                 'eid':       eid,
                 '__type:'+eid:    'CWUser', '_cw_entity_fields:'+eid: 'login-subject',