From 3ca9f50f96cfa5c1b7aa56639042531b57f07fbb Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 9 Aug 2017 23:08:22 +0200 Subject: [PATCH] bpo-31160: test_builtin: don't check waitpid() status (#3050) --- Lib/test/test_builtin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index 219a08abd3f..9d949b74cb8 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -1569,8 +1569,8 @@ class PtyTests(unittest.TestCase): % (len(lines), child_output)) os.close(fd) - pid, status = os.waitpid(pid, 0) - self.assertEqual(status, 0) + # Wait until the child process completes + os.waitpid(pid, 0) return lines