summaryrefslogtreecommitdiff
path: root/pylint/test/input/func_noerror_external_classmethod_crash.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test/input/func_noerror_external_classmethod_crash.py')
-rw-r--r--pylint/test/input/func_noerror_external_classmethod_crash.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/pylint/test/input/func_noerror_external_classmethod_crash.py b/pylint/test/input/func_noerror_external_classmethod_crash.py
new file mode 100644
index 0000000..318f01c
--- /dev/null
+++ b/pylint/test/input/func_noerror_external_classmethod_crash.py
@@ -0,0 +1,21 @@
+# pylint: disable=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(object):
+ """hop"""
+ fetch_order = fetch_config('A')
+
+__revision__ = None