]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-109960: Remove test_pty timeout of 10 seconds (GH-110058) (#110060)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Oct 2023 15:43:38 +0000 (08:43 -0700)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2023 15:43:38 +0000 (17:43 +0200)
commitaaa8bf18c6e569abb178896a68786ad3857663e9
tree972a8dc18602c8eb1202416849f14f89ac670e08
parent2b96102f29d2634a69b04cc782236cb12d8e3e56
[3.12] gh-109960: Remove test_pty timeout of 10 seconds (GH-110058) (#110060)

gh-109960: Remove test_pty timeout of 10 seconds (GH-110058)

In 2003, test_pty got a hardcoded timeout of 10 seconds to prevent
hanging on AIX & HPUX "if run after test_openpty":
commit 7d8145268ee282f14d6adce9305dc3c1c7ffec14. Since 2003, test_pty
was no longer reported to hang on AIX. But today, the test can fail
simply because a CI is busy running other tests in parallel.
The timeout of 10 seconds is no longer needed, just remove it.
Moreover, regrtest now has multiple built-in generic timeout
mecanisms.
(cherry picked from commit 5fdcea744024c8a19ddb57057bf5ec2889546c98)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_pty.py