-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor sanitizer skip tests into test.support #30889
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addition. LGTM, with a single remark.
Lib/test/support/__init__.py
Outdated
'--with-memory-sanitizer' in _config_args | ||
) | ||
address_sanitizer = ( | ||
'-fsanitize=address' in _cflags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also check '--with-memory-sanitizer'
in _config_args
I'd add a NEWS entry and possibly document it in the test support section. |
Lib/test/support/__init__.py
Outdated
@@ -55,6 +55,7 @@ | |||
"run_with_tz", "PGO", "missing_compiler_executable", | |||
"ALWAYS_EQ", "NEVER_EQ", "LARGEST", "SMALLEST", | |||
"LOOPBACK_TIMEOUT", "INTERNET_TIMEOUT", "SHORT_TIMEOUT", "LONG_TIMEOUT", | |||
"skip_if_sanitizer", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this probably belongs in the unittest
section between line 34 and 44.
The news section is for user visible changes, this is an internal change. |
…H-31634) * Refactor sanitiser skip tests into test.support (GH-30889) * Refactor sanitizer skip tests into test.support (cherry picked from commit b1cb843) * Add skips to crashing tests under sanitizers instead of manually skipping them (GH-30897) (cherry picked from commit a275053) * 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 commit 9204bb7) Co-authored-by: Pablo Galindo Salgado <[email protected]>
…H-31634) (GH-31644) * Refactor sanitiser skip tests into test.support (GH-30889) * Refactor sanitizer skip tests into test.support (cherry picked from commit b1cb843) * Add skips to crashing tests under sanitizers instead of manually skipping them (GH-30897) (cherry picked from commit a275053) * 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 commit 9204bb7) Co-authored-by: Pablo Galindo Salgado <[email protected]> (cherry picked from commit 9326445)
…) (pythonGH-31634) (pythonGH-31644) * Refactor sanitiser skip tests into test.support (pythonGH-30889) * Refactor sanitizer skip tests into test.support (cherry picked from commit b1cb843) * Add skips to crashing tests under sanitizers instead of manually skipping them (pythonGH-30897) (cherry picked from commit a275053) * bpo-46633: Skip tests on ASAN and/or MSAN builds (pythonGH-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 commit 9204bb7) Co-authored-by: Pablo Galindo Salgado <[email protected]> (cherry picked from commit 9326445)
No description provided.