diff --git a/Lib/test/test_listcomps.py b/Lib/test/test_listcomps.py index c1089574d71b02..90c592e251c87e 100644 --- a/Lib/test/test_listcomps.py +++ b/Lib/test/test_listcomps.py @@ -579,7 +579,7 @@ def test_comp_in_try_finally(self): code = """ def f(value): try: - [{func}(value) for value in value] + [(value) for value in value] finally: return value ret = f(["a"])