summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-09 20:25:11 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-28 22:45:45 +0200
commit5a479deddb635c00047105e02ae60bb044ab2027 (patch)
treefd64d414dd26599eef415fb149b8493dc733bc31
parentf04bd2fa25ebac7a93beed8de1f37d67b03a7457 (diff)
downloadpylint-git-5a479deddb635c00047105e02ae60bb044ab2027.tar.gz
Migrate func_loopvar_in_dict_comp_py27.py to new functional tests
-rw-r--r--tests/functional/l/loopvar_in_dict_comp_py27.py (renamed from tests/input/func_loopvar_in_dict_comp_py27.py)2
-rw-r--r--tests/functional/l/loopvar_in_dict_comp_py27.txt1
-rw-r--r--tests/messages/func_loopvar_in_dict_comp_py27.txt1
3 files changed, 2 insertions, 2 deletions
diff --git a/tests/input/func_loopvar_in_dict_comp_py27.py b/tests/functional/l/loopvar_in_dict_comp_py27.py
index 312eee727..072ea1bf5 100644
--- a/tests/input/func_loopvar_in_dict_comp_py27.py
+++ b/tests/functional/l/loopvar_in_dict_comp_py27.py
@@ -5,4 +5,4 @@ __revision__ = 0
def bad_case():
"""Loop variable from dict comprehension."""
- return {x: lambda: x for x in range(10)}
+ return {x: lambda: x for x in range(10)} # [cell-var-from-loop]
diff --git a/tests/functional/l/loopvar_in_dict_comp_py27.txt b/tests/functional/l/loopvar_in_dict_comp_py27.txt
new file mode 100644
index 000000000..2d98fcfff
--- /dev/null
+++ b/tests/functional/l/loopvar_in_dict_comp_py27.txt
@@ -0,0 +1 @@
+cell-var-from-loop:8:23:bad_case.<lambda>:Cell variable x defined in loop
diff --git a/tests/messages/func_loopvar_in_dict_comp_py27.txt b/tests/messages/func_loopvar_in_dict_comp_py27.txt
deleted file mode 100644
index bc11121c4..000000000
--- a/tests/messages/func_loopvar_in_dict_comp_py27.txt
+++ /dev/null
@@ -1 +0,0 @@
-W: 8:bad_case.<lambda>: Cell variable x defined in loop