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.
This commit is contained in:
Victor Stinner 2022-03-01 15:44:08 +01:00 committed by GitHub
parent 0cc6364185
commit 9204bb72a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 40 additions and 24 deletions

View file

@ -1,7 +1,15 @@
import os
import os.path
import unittest
from test import support
from test.support import load_package_tests
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")
# Load all tests in package
def load_tests(*args):
return load_package_tests(os.path.dirname(__file__), *args)