tests/run-tests.py
changeset 1314 48123437bbc5
parent 1313 2a1cad657b6d
child 1317 f7923ea4b188
equal deleted inserted replaced
1312:c44d24e2fc66 1314:48123437bbc5
    61 processlock = threading.Lock()
    61 processlock = threading.Lock()
    62 
    62 
    63 # subprocess._cleanup can race with any Popen.wait or Popen.poll on py24
    63 # subprocess._cleanup can race with any Popen.wait or Popen.poll on py24
    64 # http://bugs.python.org/issue1731717 for details. We shouldn't be producing
    64 # http://bugs.python.org/issue1731717 for details. We shouldn't be producing
    65 # zombies but it's pretty harmless even if we do.
    65 # zombies but it's pretty harmless even if we do.
    66 if sys.version_info[1] < 5:
    66 if sys.version_info < (2, 5):
    67     subprocess._cleanup = lambda: None
    67     subprocess._cleanup = lambda: None
    68 
    68 
    69 closefds = os.name == 'posix'
    69 closefds = os.name == 'posix'
    70 def Popen4(cmd, wd, timeout, env=None):
    70 def Popen4(cmd, wd, timeout, env=None):
    71     processlock.acquire()
    71     processlock.acquire()