diff options
Diffstat (limited to 'tests/functional/w/wrong_exception_operation.py')
-rw-r--r-- | tests/functional/w/wrong_exception_operation.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/functional/w/wrong_exception_operation.py b/tests/functional/w/wrong_exception_operation.py new file mode 100644 index 000000000..1c3c4e380 --- /dev/null +++ b/tests/functional/w/wrong_exception_operation.py @@ -0,0 +1,18 @@ +# pylint: disable=missing-docstring, superfluous-parens + + +try: + 1/0 +except (ValueError | TypeError): # [wrong-exception-operation] + pass + +try: + 1/0 +except (ValueError + TypeError): # [wrong-exception-operation] + pass + + +try: + 1/0 +except (ValueError < TypeError): # [wrong-exception-operation] + pass |