]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-117657: Skip tests that may cause stack overflows under TSan (#129751)
authorSam Gross <colesbury@gmail.com>
Thu, 6 Feb 2025 22:03:01 +0000 (17:03 -0500)
committerGitHub <noreply@github.com>
Thu, 6 Feb 2025 22:03:01 +0000 (17:03 -0500)
These tests crash under TSan due to stack overflows. Just skip them if
TSan is enabled.

Lib/test/test_call.py
Lib/test/test_functools.py

index a4115d54ce5995839791eec4d68e5a371a960ce1..9d73d0e690ed5810fb2ec6ae8fd952d780b50096 100644 (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):
index 4beb4380c3ad6bc4e29d34e82b913cb430cb0f9d..1b7a76bec839bfabfed52415fc0220b343508103 100644 (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):