diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2018-05-23 07:49:08 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-06-06 17:43:25 -0700 |
commit | b33128e0b8610af2a709226185921299d5aa3897 (patch) | |
tree | 967dc79d0040a7c3e3f7fa2e0832ca445a3d0163 | |
parent | 2bb8e44d429b739941720f4564afaefb86fbc37b (diff) | |
download | pylint-git-b33128e0b8610af2a709226185921299d5aa3897.tar.gz |
Fix the dict iterating texts by adding the parens. Thanks @asottlile
-rw-r--r-- | pylint/test/unittest_checker_python3.py | 10 |
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 = __({}())', |