8000 gh-111178: Skip tests which require deep stack if UBsan by vstinner · Pull Request #131669 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-111178: Skip tests which require deep stack if UBsan #131669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-111178: Skip tests which require deep stack if UBsan
If Python is built with Undefined Behavior sanitizer, skip
test_repr_deep() of test_userdict and test_lru_recursion() of
test_functools.
  • Loading branch information
vstinner committed Mar 24, 2025
commit 4a88e23c6625f160be8c20227bac0368f35cb6b3
1 change: 1 addition & 0 deletions Lib/test/mapping_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ def __repr__(self):

@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()):
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2078,7 +2078,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_if_sanitizer("requires deep stack", ub=True, thread=True)
@support.skip_emscripten_stack_overflow()
def test_lru_recursion(self):

Expand Down
Loading
0