[web/test] fix 3.19 deprecation warning
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 12 Feb 2015 18:39:04 +0100
changeset 10241 9d2f53777430
parent 10240 6ec03928257f
child 10242 3efd572a137a
[web/test] fix 3.19 deprecation warning
web/test/unittest_views_editforms.py
--- a/web/test/unittest_views_editforms.py	Thu Feb 12 18:25:07 2015 +0100
+++ b/web/test/unittest_views_editforms.py	Thu Feb 12 18:39:04 2015 +0100
@@ -41,7 +41,7 @@
         with self.admin_access.web_request() as req:
             AFFK.tag_subject_of(('CWUser', 'login', '*'),
                                 {'widget': AutoCompletionWidget(autocomplete_initfunc='get_logins')})
-            form = self.vreg['forms'].select('edition', req, entity=self.user(req))
+            form = self.vreg['forms'].select('edition', req, entity=req.user)
             field = form.field_by_name('login', 'subject')
             self.assertIsInstance(field.widget, AutoCompletionWidget)
             AFFK.del_rtag('CWUser', 'login', '*', 'subject')