From: Sam Gross Date: Thu, 6 Feb 2025 22:03:01 +0000 (-0500) Subject: gh-117657: Skip tests that may cause stack overflows under TSan (#129751) X-Git-Tag: v3.14.0a5~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e3330f054b91049c7260eb02b1e2c3808958e11;p=thirdparty%2FPython%2Fcpython.git gh-117657: Skip tests that may cause stack overflows under TSan (#129751) These tests crash under TSan due to stack overflows. Just skip them if TSan is enabled. --- diff --git a/Lib/test/test_call.py b/Lib/test/test_call.py index a4115d54ce59..9d73d0e690ed 100644 --- a/Lib/test/test_call.py +++ b/Lib/test/test_call.py @@ -1,6 +1,7 @@ import unittest from test.support import (cpython_only, is_wasi, requires_limited_api, Py_DEBUG, - set_recursion_limit, skip_on_s390x, skip_emscripten_stack_overflow, import_helper) + set_recursion_limit, skip_on_s390x, skip_emscripten_stack_overflow, + skip_if_sanitizer, import_helper) try: import _testcapi except ImportError: @@ -1036,6 +1037,7 @@ class TestRecursion(unittest.TestCase): @skip_on_s390x @unittest.skipIf(is_wasi and Py_DEBUG, "requires deep stack") + @skip_if_sanitizer("requires deep stack", thread=True) @unittest.skipIf(_testcapi is None, "requires _testcapi") @skip_emscripten_stack_overflow() def test_super_deep(self): diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py index 4beb4380c3ad..1b7a76bec839 100644 --- a/Lib/test/test_functools.py +++ b/Lib/test/test_functools.py @@ -2067,6 +2067,7 @@ class TestLRU: @support.skip_on_s390x @unittest.skipIf(support.is_wasi, "WASI has limited C stack") + @support.skip_if_sanitizer("requires deep stack", thread=True) @support.skip_emscripten_stack_overflow() def test_lru_recursion(self):