mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
gh-111178: Skip tests which require deep stack if UBsan (#131669)
If Python is built with Undefined Behavior sanitizer, skip test_repr_deep() of test_userdict and test_lru_recursion() of test_functools.
This commit is contained in:
parent
6226edc48b
commit
b3319fe42f
2 changed files with 2 additions and 1 deletions
|
@ -624,6 +624,7 @@ class TestHashMappingProtocol(TestMappingProtocol):
|
||||||
|
|
||||||
@support.skip_wasi_stack_overflow()
|
@support.skip_wasi_stack_overflow()
|
||||||
@support.skip_emscripten_stack_overflow()
|
@support.skip_emscripten_stack_overflow()
|
||||||
|
@support.skip_if_sanitizer("requires deep stack", ub=True)
|
||||||
def test_repr_deep(self):
|
def test_repr_deep(self):
|
||||||
d = self._empty_mapping()
|
d = self._empty_mapping()
|
||||||
for i in range(support.exceeds_recursion_limit()):
|
for i in range(support.exceeds_recursion_limit()):
|
||||||
|
|
|
@ -2078,7 +2078,7 @@ class TestLRU:
|
||||||
|
|
||||||
@support.skip_on_s390x
|
@support.skip_on_s390x
|
||||||
@unittest.skipIf(support.is_wasi, "WASI has limited C stack")
|
@unittest.skipIf(support.is_wasi, "WASI has limited C stack")
|
||||||
@support.skip_if_sanitizer("requires deep stack", thread=True)
|
@support.skip_if_sanitizer("requires deep stack", ub=True, thread=True)
|
||||||
@support.skip_emscripten_stack_overflow()
|
@support.skip_emscripten_stack_overflow()
|
||||||
def test_lru_recursion(self):
|
def test_lru_recursion(self):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue