]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-109960: Remove test_pty timeout of 10 seconds (GH-110058) (#110061)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 29 Sep 2023 00:30:38 +0000 (17:30 -0700)
committerGitHub <noreply@github.com>
Fri, 29 Sep 2023 00:30:38 +0000 (00:30 +0000)
commita99729599a70d73e8796f6c9d5cdf6807bda0cd5
tree241b3506ada1be0c2d0288342445f008aef267d6
parentd6e8001467a8d1b6e7a6d9b45ac08702ac19f1cb
[3.11] gh-109960: Remove test_pty timeout of 10 seconds (GH-110058) (#110061)

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