summaryrefslogtreecommitdiff
path: root/tests/farm/html/src/partial.py
blob: ea97ec4fd9ef77278f238015c791bf19c0b39e71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt

# partial branches and excluded lines

a = 6

while True:
    break

while 1:
    break

while a:        # pragma: no branch
    break

if 0:
    never_happen()

if 1:
    a = 21

if a == 23:
    raise AssertionError("Can't")