https://github.com/python/cpython/commit/4e3330f054b91049c7260eb02b1e2c3808958e11
commit: 4e3330f054b91049c7260eb02b1e2c3808958e11
branch: main
author: Sam Gross <[email protected]>
committer: colesbury <[email protected]>
date: 2025-02-06T17:03:01-05:00
summary:

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.

files:
M Lib/test/test_call.py
M Lib/test/test_functools.py

diff --git a/Lib/test/test_call.py b/Lib/test/test_call.py
index a4115d54ce5995..9d73d0e690ed58 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 4beb4380c3ad6b..1b7a76bec839bf 100644
--- a/Lib/test/test_functools.py
+++ b/Lib/test/test_functools.py
@@ -2067,6 +2067,7 @@ def orig(a, /, b, c=True): ...
 
     @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):
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to