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

@ -1,5 +1,9 @@
import unittest
from test.support.import_helper import import_module
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 test_idle if _tkinter wasn't built, if tkinter is missing,
# if tcl/tk is not the 8.5+ needed for ttk widgets,