tests/run-tests.py
branchstable
changeset 1313 2a1cad657b6d
parent 1307 164ed9bf157c
child 1317 f7923ea4b188
equal deleted inserted replaced
1311:1fed120bfa04 1313:2a1cad657b6d
    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()