Decorator raising SkipTest if running with a sanitizer active.
(reason=None, *, address=False, memory=False, ub=False, thread=False)
| 473 | |
| 474 | |
| 475 | def skip_if_sanitizer(reason=None, *, address=False, memory=False, ub=False, thread=False): |
| 476 | """Decorator raising SkipTest if running with a sanitizer active.""" |
| 477 | if not reason: |
| 478 | reason = 'not working with sanitizers active' |
| 479 | skip = check_sanitizer(address=address, memory=memory, ub=ub, thread=thread) |
| 480 | return unittest.skipIf(skip, reason) |
| 481 | |
| 482 | # gh-89363: True if fork() can hang if Python is built with Address Sanitizer |
| 483 | # (ASAN): libasan race condition, dead lock in pthread_create(). |
nothing calls this directly
no test coverage detected
searching dependent graphs…