diff -r 9c15f5c37707 -r 600f20908ede tests/run-tests.py --- a/tests/run-tests.py Thu Jul 14 08:39:48 2011 +0100 +++ b/tests/run-tests.py Mon Aug 08 09:38:40 2011 +0100 @@ -340,10 +340,7 @@ """Terminate subprocess (with fallback for Python versions < 2.6)""" vlog('# Terminating process %d' % proc.pid) try: - if hasattr(proc, 'terminate'): - proc.terminate() - else: - os.kill(proc.pid, signal.SIGTERM) + getattr(proc, 'terminate', lambda : os.kill(proc.pid, signal.SIGTERM))() except OSError: pass