From 7c6161c48999becc24acc6782136dc552956a248 Mon Sep 17 00:00:00 2001 From: "Andrew M. Yturaldi" <131637136+AndrewYturaldi@users.noreply.github.com> Date: Fri, 17 May 2024 05:19:45 -0500 Subject: [PATCH] =?UTF-8?q?fix(curriculum):=20removed=20line=20that=20crea?= =?UTF-8?q?tes=20=5F=5Flocals=20in=20python=20test=20ev=E2=80=A6=20(#54828?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Dario-DC <105294544+Dario-DC@users.noreply.github.com> Co-authored-by: Ilenia M --- tools/client-plugins/browser-scripts/python-test-evaluator.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/client-plugins/browser-scripts/python-test-evaluator.ts b/tools/client-plugins/browser-scripts/python-test-evaluator.ts index 613820b0a93..5c9fb5f943a 100644 --- a/tools/client-plugins/browser-scripts/python-test-evaluator.ts +++ b/tools/client-plugins/browser-scripts/python-test-evaluator.ts @@ -168,9 +168,7 @@ with open("/user_code.py", "r") as f: } }); } - // TODO: remove the next line, creating __locals, once all the tests access - // variables directly. - runPython('__locals = globals()'); + await test(); ctx.postMessage({ pass: true });