diff -r 6b3523f81f42 -r 26744ad37953 cubicweb/web/test/unittest_urlrewrite.py --- a/cubicweb/web/test/unittest_urlrewrite.py Fri Apr 05 17:21:14 2019 +0200 +++ b/cubicweb/web/test/unittest_urlrewrite.py Fri Apr 05 17:58:19 2019 +0200 @@ -16,8 +16,6 @@ # You should have received a copy of the GNU Lesser General Public License along # with CubicWeb. If not, see . -from six import text_type - from logilab.common import tempattr from cubicweb.devtools.testlib import CubicWebTC @@ -139,8 +137,8 @@ rgx_action(r'Any X WHERE X surname %(sn)s, ' 'X firstname %(fn)s', argsgroups=('sn', 'fn'), - transforms={'sn' : text_type.capitalize, - 'fn' : text_type.lower,})), + transforms={'sn' : str.capitalize, + 'fn' : str.lower,})), ] with self.admin_access.web_request() as req: rewriter = TestSchemaBasedRewriter(req)