Statistics
| Revision:

gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / pylint / test / functional / continue_in_finally.py @ 745

History | View | Annotate | Download (415 Bytes)

1
"""Test that `continue` is catched when met inside a `finally` clause."""
2

    
3
# pylint: disable=missing-docstring, lost-exception, broad-except
4

    
5
while True:
6
    try:
7
        pass
8
    finally:
9
        continue # [continue-in-finally]
10

    
11
while True:
12
    try:
13
        pass
14
    finally:
15
        break
16

    
17
while True:
18
    try:
19
        pass
20
    except Exception:
21
        pass
22
    else:
23
        continue
24