giulio98 commited on
Commit
72ed02e
·
1 Parent(s): ac04d3c

Update execute.py

Browse files
Files changed (1) hide show
  1. execute.py +2 -1
execute.py CHANGED
@@ -36,7 +36,8 @@ def check_correctness(check_program, output, timeout, task_id, completion_id):
36
  :param completion_id: an optional completion ID so we can match
37
  the results later even if execution finishes asynchronously.
38
  """
39
- result = []
 
40
  unsafe_execute(check_program, output, result, timeout)
41
 
42
  if not result:
 
36
  :param completion_id: an optional completion ID so we can match
37
  the results later even if execution finishes asynchronously.
38
  """
39
+ manager = multiprocessing.Manager()
40
+ result = manager.list()
41
  unsafe_execute(check_program, output, result, timeout)
42
 
43
  if not result: