mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
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:
parent
365cf5fc23
commit
4e3330f054
2 changed files with 4 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue