diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-09 20:25:11 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-14 19:48:30 +0100 |
commit | 5c8ef477b16df3de6b49ac50fa17d21d8cdd815e (patch) | |
tree | c8612cd400c4d4b96602a634a34f600a8a0a9685 | |
parent | 8cbb76ad74c4e8992a66e6a7fc322c3aaea52cb7 (diff) | |
download | pylint-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.txt | 1 | ||||
-rw-r--r-- | tests/messages/func_loopvar_in_dict_comp_py27.txt | 1 |
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 |