Skip to content

Commit

Permalink
Add test coverage for sibling except handlers (#6165)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Apr 10, 2022
1 parent 44e32ba commit 5741fe8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/functional/u/unused/unused_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 5741fe8

Please sign in to comment.