]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-143460: Skip infinite recusion tests for infinite stack size (#143606)
authorJan André Reuter <jan.andre.reuter@hotmail.de>
Fri, 9 Jan 2026 16:11:37 +0000 (17:11 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Jan 2026 16:11:37 +0000 (16:11 +0000)
commit61e036691c8ac70facb8d3fc39c670bde56218e8
treee4e9f19fb71cc7aba6cd45361b173887db62d09b
parentc696f33d9ee425d7acd5de90d5418a3280444962
gh-143460: Skip infinite recusion tests for infinite stack size (#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.

Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.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]