# HG changeset patch # User Denis Laxalde # Date 1552042220 -3600 # Node ID d189d10e2469d910b1d988d40a74f928a2d5d380 # Parent 2b4c1ad6fbf17964fb52b5aa18bb0f094b31f466 [test] Pass __module__ upon instantiation of RegistrableInstance This gets rid of the deprecation warning from logilab.common.registry: DeprecationWarning: instantiate MyAFS with __module__=__name__ and solves a test error on Python 3.7. diff -r 2b4c1ad6fbf1 -r d189d10e2469 cubicweb/devtools/test/data/libpython/cubicweb_i18ntestcube/views.py --- a/cubicweb/devtools/test/data/libpython/cubicweb_i18ntestcube/views.py Fri Mar 08 12:00:47 2019 +0100 +++ b/cubicweb/devtools/test/data/libpython/cubicweb_i18ntestcube/views.py Fri Mar 08 11:50:20 2019 +0100 @@ -24,7 +24,7 @@ class MyAFS(uicfg.AutoformSectionRelationTags): __select__ = is_instance('ForumThread') -_myafs = MyAFS() +_myafs = MyAFS(__module__=__name__) _myafs.tag_object_of(('*', 'in_forum', 'Forum'), 'main', 'inlined')