Mercurial > ~astiob > upreckon > hgweb
diff testcases.py @ 128:42c8f5c152a5
Fixed EINTR fatally breaking poll/wait on Python 2.6- (for real this time)
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Mon, 16 May 2011 21:31:43 +0100 |
parents | 218b8c28549c |
children | 652028850ea4 |
line wrap: on
line diff
--- a/testcases.py Mon May 16 02:53:24 2011 +0100 +++ b/testcases.py Mon May 16 21:31:43 2011 +0100 @@ -196,9 +196,8 @@ terminate(case.process) except Exception: time.sleep(0) - case.process.poll() else: - case.process.wait() + wait(case.process) break else: # If killing the process is unsuccessful three times in a row, @@ -208,9 +207,8 @@ kill(case.process) except Exception: time.sleep(0) - case.process.poll() else: - case.process.wait() + wait(case.process) break if case.files_to_delete: for name in case.files_to_delete: