third_party.pylibs.pylint.src/test/input/func_noerror_external_classmethod_crash.py
Sylvain Thénault 5cf93dd3e2 test fix
2007-03-09 08:54:42 +01:00

22 lines
495 B
Python

# pylint: disable-msg=W0232,R0903,W0613
"""tagging a function as a class method cause a crash when checking for
signature overriding
"""
def fetch_config(mainattr=None):
"""return a class method"""
def fetch_order(cls, attr, var):
"""a class method"""
if attr == mainattr:
return var
return None
fetch_order = classmethod(fetch_order)
return fetch_order
class Aaa:
"""hop"""
fetch_order = fetch_config('A')
__revision__ = None