commit | 1460ce5a9325690d8a1913c296a9bba437ff0f39 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Tue Aug 22 16:51:09 2017 +0200 |
committer | GitHub <noreply@github.com> | Tue Aug 22 16:51:09 2017 +0200 |
tree | 6555af9404025414a8196da4261609f013628848 | |
parent | cce1cb9180dd9143c5b2ce094a52c555b42c7aa8 [diff] [blame] |
bpo-31258: test_signal: call waitpid() to prevent zombie process (#3183)
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py index 27054f1..5cff13a 100644 --- a/Lib/test/test_signal.py +++ b/Lib/test/test_signal.py
@@ -185,6 +185,9 @@ self.fail('Test deadlocked after %d seconds.' % self.MAX_DURATION) + # read the exit status to not leak a zombie process + os.waitpid(child, 0) + @unittest.skipIf(sys.platform == "win32", "Not valid on Windows") class BasicSignalTests(unittest.TestCase):