diff --git a/human_eval/execution.py b/human_eval/execution.py index bc509f5..3fe977a 100644 --- a/human_eval/execution.py +++ b/human_eval/execution.py @@ -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() @@ -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()