diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2021-12-17 23:57:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-17 23:57:45 +0100 |
commit | ddd2123e09f97ef91d5745e9790d6f24a5493156 (patch) | |
tree | 53da984b9429458c7540569ea490e46ab69c9fa9 /tests/functional/o | |
parent | fd18848e4491fe67b79537a79725655c81fe26ef (diff) | |
download | pylint-git-ddd2123e09f97ef91d5745e9790d6f24a5493156.tar.gz |
Fix crash on uninferable decorators on Python 3.6 and 3.7 (#5549)
Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
Diffstat (limited to 'tests/functional/o')
-rw-r--r-- | tests/functional/o/overridden_final_method_regression.py | 6 | ||||
-rw-r--r-- | tests/functional/o/overridden_final_method_regression.txt | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/functional/o/overridden_final_method_regression.py b/tests/functional/o/overridden_final_method_regression.py new file mode 100644 index 000000000..a1f72b380 --- /dev/null +++ b/tests/functional/o/overridden_final_method_regression.py @@ -0,0 +1,6 @@ +"""Test a crash regression for the overridden-final-method checker on uninferable decorators""" + + +@unknown_decorator # [undefined-variable] +def crash_test(): + """A docstring""" diff --git a/tests/functional/o/overridden_final_method_regression.txt b/tests/functional/o/overridden_final_method_regression.txt new file mode 100644 index 000000000..a8cb23954 --- /dev/null +++ b/tests/functional/o/overridden_final_method_regression.txt @@ -0,0 +1 @@ +undefined-variable:4:1:4:18:crash_test:Undefined variable 'unknown_decorator':UNDEFINED |