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.
This commit is contained in:
Sam Gross 2025-02-06 17:03:01 -05:00 committed by GitHub
parent 365cf5fc23
commit 4e3330f054
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -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):

View file

@ -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):