Skip to content

Commit

Permalink
Proper coverage of block_range in try star node
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Mar 4, 2023
1 parent 5a08fa0 commit 8dcb28d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_group_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ def test_star_exceptions() -> None:
)
assert isinstance(node, TryStar)
assert isinstance(node.body[0], Raise)
assert node.block_range(1) == (1, 11)
assert node.block_range(2) == (2, 2)
assert node.block_range(3) == (3, 3)
assert node.block_range(4) == (4, 4)
assert node.block_range(5) == (5, 5)
assert node.block_range(6) == (6, 6)
assert node.block_range(7) == (7, 7)
assert node.block_range(8) == (8, 8)
assert node.block_range(9) == (9, 9)
assert node.block_range(10) == (10, 10)
assert node.block_range(11) == (11, 11)
assert node.handlers
handler = node.handlers[0]
assert isinstance(handler, ExceptHandler)
Expand Down

0 comments on commit 8dcb28d

Please sign in to comment.