]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-111178: Skip tests which require deep stack if UBsan (#131669)
authorVictor Stinner <vstinner@python.org>
Mon, 24 Mar 2025 14:33:56 +0000 (15:33 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Mar 2025 14:33:56 +0000 (15:33 +0100)
If Python is built with Undefined Behavior sanitizer, skip
test_repr_deep() of test_userdict and test_lru_recursion() of
test_functools.

Lib/test/mapping_tests.py
Lib/test/test_functools.py

index 1a0caa00fcd49e0ade9a5fea50fec6a751d39f00..9d38da5a86ee5ade7826ff73e9667e202a128641 100644 (file)
@@ -624,6 +624,7 @@ class TestHashMappingProtocol(TestMappingProtocol):
 
     @support.skip_wasi_stack_overflow()
     @support.skip_emscripten_stack_overflow()
+    @support.skip_if_sanitizer("requires deep stack", ub=True)
     def test_repr_deep(self):
         d = self._empty_mapping()
         for i in range(support.exceeds_recursion_limit()):
index fe096fa075865fff52ae8e2305423e835a239780..0bbfcfd0369cf3e27ef10b8f0537d5ab68adf59e 100644 (file)
@@ -2078,7 +2078,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_if_sanitizer("requires deep stack", ub=True, thread=True)
     @support.skip_emscripten_stack_overflow()
     def test_lru_recursion(self):