Add skips to crashing tests under sanitizers instead of manually skipping them (GH-30897)

This commit is contained in:
Pablo Galindo Salgado 2022-01-25 23:14:03 +00:00 committed by GitHub
parent a0efc0c196
commit a27505345e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 37 additions and 7 deletions

View file

@ -2,6 +2,11 @@ import sys
import unittest
from test import support
from test.support import import_helper
from test.support import check_sanitizer
if check_sanitizer(address=True, memory=True):
raise unittest.SkipTest("Tests involvin libX11 can SEGFAULT on ASAN/MSAN builds")
# Skip this test if the _tkinter module wasn't built.
_tkinter = import_helper.import_module('_tkinter')