提交 ca18098a 编写于 作者: CSDN-Ada助手's avatar CSDN-Ada助手

fix bug

上级 051a9c7e
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册