diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2020-12-29 10:20:00 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2020-12-29 10:27:39 +0100 |
commit | 5a9ea7ce8884c3040a21b91b45ab0a7951439f0f (patch) | |
tree | 86349411f845c508605ba231352a73241952c32d /tests | |
parent | 17325f2f7c8cf43f7ae61ba6726b5117cc11066c (diff) | |
download | pylint-git-fix-crash-in-attribute-check.tar.gz |
Fix a crash in `undefined-variable` caused by chained attributes in metaclassfix-crash-in-attribute-check
Close #3742
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/u/undefined_variable_crash_on_attribute.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/functional/u/undefined_variable_crash_on_attribute.py b/tests/functional/u/undefined_variable_crash_on_attribute.py new file mode 100644 index 000000000..571efab1c --- /dev/null +++ b/tests/functional/u/undefined_variable_crash_on_attribute.py @@ -0,0 +1,6 @@ +# pylint: disable=import-error,missing-module-docstring,missing-class-docstring,too-few-public-methods +import unknown + + +class Cls(metaclass=unknown.path.MetaFoo): + pass |