Skip to content

Commit 40268d1

Browse files
Trying out things
1 parent 227371c commit 40268d1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/testdata/python3/data/module.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,13 @@ def method(self):
6262
return 'hehe'
6363
global_access(local, val=autre)
6464
finally:
65-
print(local)
66-
# Became a syntax error in 3.14 and is used in 188/1464 tests
67-
# return local
68-
65+
# return in finally was previousely tested here but became a syntax error
66+
# in 3.14 and is used in 188/1464 tests
67+
if sys.version_info >= (3, 14):
68+
pass
69+
else:
70+
return local
71+
6972
def static_method():
7073
"""static method test"""
7174
assert MY_DICT, '???'

0 commit comments

Comments
 (0)