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-14 19:48:30 +0100
commit5c8ef477b16df3de6b49ac50fa17d21d8cdd815e (patch)
treec8612cd400c4d4b96602a634a34f600a8a0a9685
parent8cbb76ad74c4e8992a66e6a7fc322c3aaea52cb7 (diff)
downloadpylint-git-5c8ef477b16df3de6b49ac50fa17d21d8cdd815e.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