branch | stable |
changeset 7307 | a650e6267e97 |
parent 7222 | fcb8932082a5 |
child 7313 | 02fb1dcc99a2 |
--- a/devtools/testlib.py Thu May 05 11:46:29 2011 +0200 +++ b/devtools/testlib.py Thu May 05 11:54:41 2011 +0200 @@ -367,9 +367,8 @@ elif isinstance(login, tuple): groups = login login = req - if req is None: - assert not isinstance(self, type) - req = self._orig_cnx[0].request() + assert not isinstance(self, type) + req = self._orig_cnx[0].request() if password is None: password = login.encode('utf8') user = req.create_entity('CWUser', login=unicode(login),