]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-143460: Skip infinite recusion tests for infinite stack size (GH-143606...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 9 Jan 2026 16:54:49 +0000 (17:54 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Jan 2026 16:54:49 +0000 (16:54 +0000)
commit18f9af2331ac32a24b33e3f97c67b3caa9e911f1
tree923e7ac319a134d36adfa1e27329b2f39c4cde46
parent0e2ed4b0e1ae36bd7dbbcb210f686deffc10f14e
[3.14] gh-143460: Skip infinite recusion tests for infinite stack size (GH-143606) (#143619)

gh-143460: Skip infinite recusion tests for infinite stack size (GH-143606)

Avoid tests being killed due to OOM on Linux if a system is configured with
'ulimit -s unlimited' by skipping tests relying on infinite recursion.

While unclear if Python should support 'ulimit -s unlimited', we should at
least try to avoid failing a PGO build running tests due to an unlimited
stack size being set.
(cherry picked from commit 61e036691c8ac70facb8d3fc39c670bde56218e8)

Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
Co-authored-by: Jan André Reuter <jan.andre.reuter@hotmail.de>
Lib/test/pickletester.py
Lib/test/support/__init__.py
Lib/test/test_ast/test_ast.py
Lib/test/test_functools.py
Lib/test/test_isinstance.py
Lib/test/test_json/test_recursion.py
Lib/test/test_support.py
Lib/test/test_tomllib/test_misc.py
Misc/NEWS.d/next/Tests/2026-01-09-13-52-10.gh-issue-143460._nW2jt.rst [new file with mode: 0644]