提交 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): ...@@ -74,7 +74,7 @@ def unsafe_execute(tmp_dir, language_type, timeout, sample, result, task_id):
chdir = os.chdir chdir = os.chdir
# Disable functionalities that can make destructive changes to the test. # Disable functionalities that can make destructive changes to the test.
# reliability_guard() reliability_guard()
try: try:
exec_globals = {} exec_globals = {}
...@@ -537,8 +537,8 @@ def reliability_guard(maximum_memory_bytes: Optional[int] = None): ...@@ -537,8 +537,8 @@ def reliability_guard(maximum_memory_bytes: Optional[int] = None):
shutil.move = None shutil.move = None
shutil.chown = None shutil.chown = None
import subprocess # import subprocess
subprocess.Popen = None # type: ignore # subprocess.Popen = None # type: ignore
__builtins__['help'] = None __builtins__['help'] = None
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册