diff options
Diffstat (limited to 'tests/functional/l/len_checks.py')
-rw-r--r-- | tests/functional/l/len_checks.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/functional/l/len_checks.py b/tests/functional/l/len_checks.py index eb10b6a3b..2cbefcbe7 100644 --- a/tests/functional/l/len_checks.py +++ b/tests/functional/l/len_checks.py @@ -175,3 +175,12 @@ def github_issue_1879(): # assert len(function_returning_generator(z)) # assert len(function_returning_comprehension(z)) # assert len(function_returning_function(z)) + + +def github_issue_4215(): + # Test undefined variables + # https://github.com/PyCQA/pylint/issues/4215 + if len(undefined_var): # [undefined-variable] + pass + if len(undefined_var2[0]): # [undefined-variable] + pass |