gh-111178: Skip test_perf_profiler on function sanitizer (#132020)

Add 'function' parameter to check_sanitizer() of test.support.
This commit is contained in:
Victor Stinner 2025-04-02 18:46:10 +02:00 committed by GitHub
parent f20f02e6b5
commit 643dd5107c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View file

@ -17,7 +17,7 @@ from test.support.os_helper import temp_dir
if not support.has_subprocess_support:
raise unittest.SkipTest("test module requires subprocess")
if support.check_sanitizer(address=True, memory=True, ub=True):
if support.check_sanitizer(address=True, memory=True, ub=True, function=True):
# gh-109580: Skip the test because it does crash randomly if Python is
# built with ASAN.
raise unittest.SkipTest("test crash randomly on ASAN/MSAN/UBSAN build")