From 32c0b6c7d7a13e8f267fa67a667a923d7cf5cd8d Mon Sep 17 00:00:00 2001 From: sobolevn Date: Sat, 9 Sep 2023 16:10:56 +0300 Subject: [PATCH] gh-109182: Fix SyntaxWarning in `test_listcomps.py` --- Lib/test/test_listcomps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"])