# HG changeset patch # User Sylvain Thénault # Date 1299490807 -3600 # Node ID fe0afc4e8ebbd2f6b67a4123cd4538be81b42bd7 # Parent 6a8235456fe10871b76c6ce19684aa06dbbfdd5e [testlib] fix rql generation bug w/ groups given as unicode string diff -r 6a8235456fe1 -r fe0afc4e8ebb devtools/testlib.py --- a/devtools/testlib.py Thu Mar 03 17:50:13 2011 +0100 +++ b/devtools/testlib.py Mon Mar 07 10:40:07 2011 +0100 @@ -1,4 +1,4 @@ -# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This file is part of CubicWeb. @@ -356,7 +356,7 @@ user = req.create_entity('CWUser', login=unicode(login), upassword=password, **kwargs) req.execute('SET X in_group G WHERE X eid %%(x)s, G name IN(%s)' - % ','.join(repr(g) for g in groups), + % ','.join(repr(str(g)) for g in groups), {'x': user.eid}) user.cw_clear_relation_cache('in_group', 'subject') if commit: