devtools/testlib.py
changeset 10675 e0db937f5add
parent 10663 54b8a1f249fb
child 10687 d394bfcd8c25
--- a/devtools/testlib.py	Tue Sep 15 15:28:20 2015 +0200
+++ b/devtools/testlib.py	Tue Sep 15 17:04:04 2015 +0200
@@ -28,7 +28,7 @@
 from warnings import warn
 from itertools import chain
 
-from six import string_types
+from six import text_type, string_types
 from six.moves import range
 from six.moves.urllib.parse import urlparse, parse_qs, unquote as urlunquote
 
@@ -348,7 +348,7 @@
         been properly bootstrapped.
         """
         admincfg = config.default_admin_config
-        cls.admlogin = unicode(admincfg['login'])
+        cls.admlogin = text_type(admincfg['login'])
         cls.admpassword = admincfg['password']
         # uncomment the line below if you want rql queries to be logged
         #config.global_set_option('query-log-file',