From f668df5fa7e2048f4b17e98882f2a21405b6bdb4 Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Fri, 15 Oct 2010 14:21:06 +0000 Subject: [PATCH] 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. --- Lib/test/test_os.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 768814c1055..e413e1facc4 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