Skip to content

Commit 32c0b6c

Browse files
committed
pythongh-109182: Fix SyntaxWarning in test_listcomps.py
1 parent e21c89f commit 32c0b6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_listcomps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def test_comp_in_try_finally(self):
579579
code = """
580580
def f(value):
581581
try:
582-
[{func}(value) for value in value]
582+
[(value) for value in value]
583583
finally:
584584
return value
585585
ret = f(["a"])

0 commit comments

Comments
 (0)