From ca18098a57deb5c6d9c09abfa4d2529e781db8a5 Mon Sep 17 00:00:00 2001 From: chenlong Date: Fri, 28 Jul 2023 09:51:49 +0800 Subject: [PATCH] fix bug --- src/execution.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/execution.py b/src/execution.py index 999bb23..b18b708 100644 --- a/src/execution.py +++ b/src/execution.py @@ -74,7 +74,7 @@ def unsafe_execute(tmp_dir, language_type, timeout, sample, result, task_id): chdir = os.chdir # Disable functionalities that can make destructive changes to the test. - # reliability_guard() + reliability_guard() try: exec_globals = {} @@ -537,8 +537,8 @@ def reliability_guard(maximum_memory_bytes: Optional[int] = None): shutil.move = None shutil.chown = None - import subprocess - subprocess.Popen = None # type: ignore + # import subprocess + # subprocess.Popen = None # type: ignore __builtins__['help'] = None -- GitLab