summaryrefslogtreecommitdiff
path: root/test/input/func_superfluous_parens.py
blob: 112ab2bcf8898a2a288427302ce0eea1819e05be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""Test the superfluous-parens warning."""

__revision__ = 1

if (3 == 5):
    pass
if not (3 == 5):
    pass
if not (3 or 5):
    pass
for (x) in (1, 2, 3):
    print x
if (1) in (1, 2, 3):
    pass
if (1, 2) in (1, 2, 3):
    pass
DICT = {'a': 1, 'b': 2}
del(DICT['b'])
del DICT['a']