From bbf4d8efc642c70ef53ac0e84a2153ca7ffe6962 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Fri, 28 Feb 2025 16:58:03 +0800 Subject: [PATCH] Update 66_eval.py --- tests/66_eval.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/66_eval.py b/tests/66_eval.py index 4eaad666..2a51c22a 100644 --- a/tests/66_eval.py +++ b/tests/66_eval.py @@ -68,10 +68,9 @@ except NameError: # https://github.com/pocketpy/pocketpy/issues/339 res = [] - code = '\nres.append(x)\ndef f():\n res.append(x)\nf()\n' x = 33 -exec(code, {'x': 42}) +exec(code, {'x': 42, 'res': res}) assert res == [42, 42] assert x == 33