]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-107851: Fix spurious failures in fcntl eintr tests (#121556)
authorSam Gross <colesbury@gmail.com>
Wed, 10 Jul 2024 14:36:52 +0000 (10:36 -0400)
committerGitHub <noreply@github.com>
Wed, 10 Jul 2024 14:36:52 +0000 (10:36 -0400)
commitaf9f6de6ea930b607f948f2c91a87fe4ca9d64db
treeb31b992f507a68c5faeb82ad9119c10f4a652e77
parentca0fb3423c13822d909d75eb616ecf1965e619ae
gh-107851: Fix spurious failures in fcntl eintr tests (#121556)

On heavily loaded machines, the subprocess may finish its sleep before
the parent process manages to synchronize with it via a failed lock.

This leads to errors like:

  Exception: failed to sync child in 300.3 sec

Use pipes instead to mutually synchronize between parent and child.
Lib/test/_test_eintr.py