summaryrefslogtreecommitdiff
path: root/tests/functional/l
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-07 22:20:00 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-07 22:59:36 +0100
commitf84bf0220812a987595f719acad0be6e8cf0f982 (patch)
treea7c96e0322a8b38af55b34e57e33105528b61fb8 /tests/functional/l
parent48d366855759b612cc883409997ba161afe09095 (diff)
downloadpylint-git-f84bf0220812a987595f719acad0be6e8cf0f982.tar.gz
Migrate all func_noerror_* to new functional tests
Diffstat (limited to 'tests/functional/l')
-rw-r--r--tests/functional/l/lambda_use_before_assign.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/functional/l/lambda_use_before_assign.py b/tests/functional/l/lambda_use_before_assign.py
new file mode 100644
index 000000000..af2775cae
--- /dev/null
+++ b/tests/functional/l/lambda_use_before_assign.py
@@ -0,0 +1,8 @@
+"""https://www.logilab.net/elo/ticket/18862"""
+from __future__ import print_function
+__revision__ = 1
+def function():
+ """hop"""
+ ggg = lambda: xxx
+ xxx = 1
+ print(ggg())