Browse Source
[3.10] bpo-46633: Skip tests on ASAN and/or MSAN builds (GH-31632) (GH-31634)
[3.10] bpo-46633: Skip tests on ASAN and/or MSAN builds (GH-31632) (GH-31634)
* Refactor sanitiser skip tests into test.support (GH-30889) * Refactor sanitizer skip tests into test.support (cherry picked from commitpull/31645/headb1cb843050) * Add skips to crashing tests under sanitizers instead of manually skipping them (GH-30897) (cherry picked from commita27505345e) * 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 (cherry picked from commit9204bb72a2) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 109 additions and 49 deletions
-
6Lib/test/_test_multiprocessing.py
-
37Lib/test/support/__init__.py
-
7Lib/test/test___all__.py
-
6Lib/test/test_concurrent_futures.py
-
3Lib/test/test_crypt.py
-
16Lib/test/test_decimal.py
-
20Lib/test/test_faulthandler.py
-
4Lib/test/test_idle.py
-
25Lib/test/test_io.py
-
12Lib/test/test_peg_generator/__init__.py
-
5Lib/test/test_tix.py
-
6Lib/test/test_tk.py
-
7Lib/test/test_tools/__init__.py
-
4Lib/test/test_ttk_guionly.py
@ -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) |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue