diff options
Diffstat (limited to 'tests/functional/b/broad_except.py')
| -rw-r--r-- | tests/functional/b/broad_except.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/functional/b/broad_except.py b/tests/functional/b/broad_except.py new file mode 100644 index 000000000..24c839951 --- /dev/null +++ b/tests/functional/b/broad_except.py @@ -0,0 +1,14 @@ +# pylint: disable=missing-docstring +from __future__ import print_function +__revision__ = 0 + +try: + __revision__ += 1 +except Exception: # [broad-except] + print('error') + + +try: + __revision__ += 1 +except BaseException: # [broad-except] + print('error') |
