giulio98 commited on
Commit
701ddbe
·
1 Parent(s): 7250ef0

Update execute.py

Browse files
Files changed (1) hide show
  1. execute.py +4 -4
execute.py CHANGED
@@ -71,7 +71,7 @@ def unsafe_execute(check_program, output, result, timeout):
71
  chdir = os.chdir
72
 
73
  # Disable functionalities that can make destructive changes to the test.
74
- reliability_guard()
75
 
76
  # Run program.
77
  try:
@@ -224,7 +224,7 @@ def reliability_guard(maximum_memory_bytes=None):
224
  os.lchmod = None
225
  os.lchown = None
226
  os.getcwd = None
227
- #os.chdir = None
228
 
229
  import shutil
230
 
@@ -232,9 +232,9 @@ def reliability_guard(maximum_memory_bytes=None):
232
  shutil.move = None
233
  shutil.chown = None
234
 
235
- #import subprocess
236
 
237
- #subprocess.Popen = None # type: ignore
238
 
239
  __builtins__["help"] = None
240
 
 
71
  chdir = os.chdir
72
 
73
  # Disable functionalities that can make destructive changes to the test.
74
+ # reliability_guard()
75
 
76
  # Run program.
77
  try:
 
224
  os.lchmod = None
225
  os.lchown = None
226
  os.getcwd = None
227
+ os.chdir = None
228
 
229
  import shutil
230
 
 
232
  shutil.move = None
233
  shutil.chown = None
234
 
235
+ import subprocess
236
 
237
+ subprocess.Popen = None # type: ignore
238
 
239
  __builtins__["help"] = None
240