]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix #10098. Fix sporadic test_os failures.
authorBrian Curtin <brian.curtin@gmail.com>
Fri, 15 Oct 2010 14:21:06 +0000 (14:21 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Fri, 15 Oct 2010 14:21:06 +0000 (14:21 +0000)
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

index 768814c105530af138b60e82b654f6fa6878ed83..e413e1facc495408a046000bbaab93d2c5748f77 100644 (file)
@@ -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