From a27505345e34d462139f5f8b6b5e7c9a59955150 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Salgado Date: Tue, 25 Jan 2022 23:14:03 +0000 Subject: Add skips to crashing tests under sanitizers instead of manually skipping them (GH-30897) --- Lib/test/test_tk.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Lib/test/test_tk.py') diff --git a/Lib/test/test_tk.py b/Lib/test/test_tk.py index 69cc2322cd..8f90cbaba9 100644 --- a/Lib/test/test_tk.py +++ b/Lib/test/test_tk.py @@ -1,5 +1,11 @@ +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 test if _tkinter wasn't built. import_helper.import_module('_tkinter') -- cgit v1.2.1