diff options
author | Victor Stinner <vstinner@python.org> | 2022-03-01 15:44:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 15:44:08 +0100 |
commit | 9204bb72a2da5885facc747e63d2bd2d654606fe (patch) | |
tree | c23150281ded8586447d39075a083ecfa5ad59f4 /Lib/test/_test_multiprocessing.py | |
parent | 0cc63641859b2f60ea65bb7c0b6d1cfcec1e2f1a (diff) | |
download | cpython-9204bb72a2da5885facc747e63d2bd2d654606fe.tar.gz cpython-9204bb72a2da5885facc747e63d2bd2d654606fe.zip |
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_multiprocessing.py')
-rw-r--r-- | Lib/test/_test_multiprocessing.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index 6b1b1677910..bb73d9e7cc7 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -73,6 +73,12 @@ except ImportError: msvcrt = None +if support.check_sanitizer(address=True): + # bpo-45200: Skip multiprocessing tests if Python is built with ASAN to + # work around a libasan race condition: dead lock in pthread_create(). + raise unittest.SkipTest("libasan has a pthread_create() dead lock") + + def latin(s): return s.encode('latin') |