summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tools
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-03-01 14:44:08 (GMT)
committerGitHub <noreply@github.com>2022-03-01 14:44:08 (GMT)
commit9204bb72a2da5885facc747e63d2bd2d654606fe (patch)
treec23150281ded8586447d39075a083ecfa5ad59f4 /Lib/test/test_tools
parent0cc63641859b2f60ea65bb7c0b6d1cfcec1e2f1a (diff)
downloadcpython-9204bb72a2da5885facc747e63d2bd2d654606fe.zip
cpython-9204bb72a2da5885facc747e63d2bd2d654606fe.tar.gz
cpython-9204bb72a2da5885facc747e63d2bd2d654606fe.tar.bz2
bpo-46633: Skip tests on ASAN and/or MSAN builds (GH-31632)
Skip tests on ASAN and/or MSAN builds: * multiprocessing tests * test___all__ * test_concurrent_futures * test_decimal * test_peg_generator * test_tools The ASAN job of GitHub Actions no longer excludes these tests.
Diffstat (limited to 'Lib/test/test_tools')
-rw-r--r--Lib/test/test_tools/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_tools/__init__.py b/Lib/test/test_tools/__init__.py
index 61af657..34b0d3b 100644
--- a/Lib/test/test_tools/__init__.py
+++ b/Lib/test/test_tools/__init__.py
@@ -6,6 +6,13 @@ import unittest
from test import support
from test.support import import_helper
+
+if support.check_sanitizer(address=True, memory=True):
+ # bpo-46633: Skip the test because it is too slow when Python is built
+ # with ASAN/MSAN: between 5 and 20 minutes on GitHub Actions.
+ raise unittest.SkipTest("test too slow on ASAN/MSAN build")
+
+
basepath = os.path.normpath(
os.path.dirname( # <src/install dir>
os.path.dirname( # Lib