summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tk.py
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2022-01-25 23:14:03 (GMT)
committerGitHub <noreply@github.com>2022-01-25 23:14:03 (GMT)
commita27505345e34d462139f5f8b6b5e7c9a59955150 (patch)
treeb5bb6339a8f6db3ddce80d6e3f6298d31f474f9d /Lib/test/test_tk.py
parenta0efc0c1960e2c49e0092694d98395555270914c (diff)
downloadcpython-a27505345e34d462139f5f8b6b5e7c9a59955150.zip
cpython-a27505345e34d462139f5f8b6b5e7c9a59955150.tar.gz
cpython-a27505345e34d462139f5f8b6b5e7c9a59955150.tar.bz2
Add skips to crashing tests under sanitizers instead of manually skipping them (GH-30897)
Diffstat (limited to 'Lib/test/test_tk.py')
-rw-r--r--Lib/test/test_tk.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_tk.py b/Lib/test/test_tk.py
index 69cc2322..8f90cba 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')