aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/parso/py3/tests/normalizer_issue_files/E25.py
blob: 8cf53147f784d5b63501878b2599b05b481870ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#: E251:11 E251:13
def foo(bar = False):
    '''Test function with an error in declaration'''
    pass


#: E251:8
foo(bar= True)
#: E251:7
foo(bar =True)
#: E251:7 E251:9
foo(bar = True)
#: E251:13
y = bar(root= "sdasd")
parser.add_argument('--long-option',
                    #: E135+1:20
                    default=
                    "/rather/long/filesystem/path/here/blah/blah/blah")
parser.add_argument('--long-option',
                    default=
                        "/rather/long/filesystem")
# TODO this looks so stupid.
parser.add_argument('--long-option', default
                    ="/rather/long/filesystem/path/here/blah/blah/blah")
#: E251+2:7 E251+2:9
foo(True,
    baz=(1, 2),
    biz = 'foo'
    )
# Okay
foo(bar=(1 == 1))
foo(bar=(1 != 1))
foo(bar=(1 >= 1))
foo(bar=(1 <= 1))
(options, args) = parser.parse_args()
d[type(None)] = _deepcopy_atomic