Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions human_eval/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def unsafe_execute():
rmtree = shutil.rmtree
rmdir = os.rmdir
chdir = os.chdir
getcwd = os.getcwd

# Disable functionalities that can make destructive changes to the test.
reliability_guard()
Expand Down Expand Up @@ -66,6 +67,7 @@ def unsafe_execute():
shutil.rmtree = rmtree
os.rmdir = rmdir
os.chdir = chdir
os.getcwd = getcwd

manager = multiprocessing.Manager()
result = manager.list()
Expand Down