summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-05-23 07:49:08 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2018-06-06 17:43:25 -0700
commitb33128e0b8610af2a709226185921299d5aa3897 (patch)
tree967dc79d0040a7c3e3f7fa2e0832ca445a3d0163
parent2bb8e44d429b739941720f4564afaefb86fbc37b (diff)
downloadpylint-git-b33128e0b8610af2a709226185921299d5aa3897.tar.gz
Fix the dict iterating texts by adding the parens. Thanks @asottlile
-rw-r--r--pylint/test/unittest_checker_python3.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pylint/test/unittest_checker_python3.py b/pylint/test/unittest_checker_python3.py
index 7d8604651..ab3de20af 100644
--- a/pylint/test/unittest_checker_python3.py
+++ b/pylint/test/unittest_checker_python3.py
@@ -200,11 +200,11 @@ class TestPython3Checker(testutils.CheckerTestCase):
def test_dict_methods_in_iterating_context(self):
iterating_code = [
- 'for x in {}: pass',
- '(x for x in {})',
- '[x for x in {}]',
- 'func({})',
- 'a, b = {}',
+ 'for x in {}(): pass',
+ '(x for x in {}())',
+ '[x for x in {}()]',
+ 'iter({}())',
+ 'a, b = {}()',
]
non_iterating_code = [
'x = __({}())',