Skip to content

Commit ee4de09

Browse files
committed
Limit try-except-star to Python 3.11 and above
1 parent 00ff3c3 commit ee4de09

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ropetest/refactor/extracttest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,6 +1809,7 @@ def g():
18091809
""")
18101810
self.assertEqual(expected, refactored)
18111811

1812+
@testutils.only_for_versions_higher("3.11")
18121813
def test_extract_method_and_try_except_star_block_1(self):
18131814
code = dedent("""\
18141815
def f():

ropetest/refactor/patchedasttest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,7 @@ def test_try_except_and_finally_node(self):
11541154
expected_children = ["try", "", ":", "\n ", "Pass", "\n", "ExceptHandler", "\n", "finally", "", ":", "\n ", "Pass"]
11551155
checker.check_children(node_to_test, expected_children)
11561156

1157+
@testutils.only_for_versions_higher("3.11")
11571158
def test_try_except_group_node(self):
11581159
source = dedent("""\
11591160
try:

0 commit comments

Comments
 (0)