From: Brian Curtin Date: Fri, 15 Oct 2010 14:21:06 +0000 (+0000) Subject: Fix #10098. Fix sporadic test_os failures. X-Git-Tag: v3.2a4~565 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f668df5fa7e2048f4b17e98882f2a21405b6bdb4;p=thirdparty%2FPython%2Fcpython.git Fix #10098. Fix sporadic test_os failures. Amaury noticed that we're not waiting for the subprocess to be ready -- it should be checking for 1, not 0. --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 768814c10553..e413e1facc49 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -1042,7 +1042,7 @@ class Win32KillTests(unittest.TestCase): # Let the interpreter startup before we send signals. See #3137. count, max = 0, 20 while count < max and proc.poll() is None: - if m[0] == 0: + if m[0] == 1: break time.sleep(0.5) count += 1