diff options
Diffstat (limited to 'tests/functional/u/unreachable.py')
-rw-r--r-- | tests/functional/u/unreachable.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/functional/u/unreachable.py b/tests/functional/u/unreachable.py new file mode 100644 index 000000000..b03dec88f --- /dev/null +++ b/tests/functional/u/unreachable.py @@ -0,0 +1,22 @@ +# pylint: disable=missing-docstring + +from __future__ import print_function + +def func1(): + return 1 + print('unreachable') # [unreachable] + +def func2(): + while 1: + break + print('unreachable') # [unreachable] + +def func3(): + for i in (1, 2, 3): + print(i) + continue + print('unreachable') # [unreachable] + +def func4(): + raise Exception + return 1 / 0 # [unreachable] |