# HG changeset patch # User Julien Cristau # Date 1423762744 -3600 # Node ID 9d2f537774306e0767e78218723d2d1c2a660e0a # Parent 6ec03928257f21855c640983a4e2ceb1d212a298 [web/test] fix 3.19 deprecation warning diff -r 6ec03928257f -r 9d2f53777430 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')