summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-10-15 14:21:06 (GMT)
committerBrian Curtin <brian.curtin@gmail.com>2010-10-15 14:21:06 (GMT)
commitf668df5fa7e2048f4b17e98882f2a21405b6bdb4 (patch)
treeb17bb3145e8c7180e6ca006002787e08223bd3dd /Lib/test
parentba8071241bb122bfcd9ec3975d5adfa369ad61bb (diff)
downloadcpython-f668df5fa7e2048f4b17e98882f2a21405b6bdb4.zip
cpython-f668df5fa7e2048f4b17e98882f2a21405b6bdb4.tar.gz
cpython-f668df5fa7e2048f4b17e98882f2a21405b6bdb4.tar.bz2
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.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 768814c..e413e1f 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