Skip to content

Commit 5741fe8

Browse files
Add test coverage for sibling except handlers (#6165)
1 parent 44e32ba commit 5741fe8

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/functional/u/unused/unused_variable.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,14 @@ def func5():
176176
x = []
177177
# Test case requires homonym between "for x" and "in x"
178178
assert [True for x in x]
179+
180+
181+
def sibling_except_handlers():
182+
try:
183+
pass
184+
except ValueError as e:
185+
print(e)
186+
try:
187+
pass
188+
except ValueError as e:
189+
print(e)

0 commit comments

Comments
 (0)