From 5741fe825379f174b384396fc1f1afb9804a84ca Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Sun, 10 Apr 2022 02:24:15 -0400 Subject: [PATCH] Add test coverage for sibling except handlers (#6165) --- tests/functional/u/unused/unused_variable.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/functional/u/unused/unused_variable.py b/tests/functional/u/unused/unused_variable.py index 78465f4807..72ef4ce791 100644 --- a/tests/functional/u/unused/unused_variable.py +++ b/tests/functional/u/unused/unused_variable.py @@ -176,3 +176,14 @@ def func5(): x = [] # Test case requires homonym between "for x" and "in x" assert [True for x in x] + + +def sibling_except_handlers(): + try: + pass + except ValueError as e: + print(e) + try: + pass + except ValueError as e: + print(e)