diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-19 14:42:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-19 14:42:08 (GMT) |
commit | 0a31ff0050eec5079fd4c9cafd33b4e3e9afd9ab (patch) | |
tree | c1977e7a938176d816dac6c90371f09cede358ac | |
parent | 67d9363372d9b214d9aa1812163866c9804aa55a (diff) | |
download | cpython-0a31ff0050eec5079fd4c9cafd33b4e3e9afd9ab.zip cpython-0a31ff0050eec5079fd4c9cafd33b4e3e9afd9ab.tar.gz cpython-0a31ff0050eec5079fd4c9cafd33b4e3e9afd9ab.tar.bz2 |
gh-109496: Skip test_capi.test_decref_freed_object() on ASAN (#109573)
Skip test_decref_freed_object() of test_capi.test_misc if Python is
built with ASAN, MSAN or UBSAN sanitizers.
-rw-r--r-- | Lib/test/test_capi/test_misc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_capi/test_misc.py b/Lib/test/test_capi/test_misc.py index 57edacb..11cb198 100644 --- a/Lib/test/test_capi/test_misc.py +++ b/Lib/test/test_capi/test_misc.py @@ -325,6 +325,8 @@ class CAPITest(unittest.TestCase): @unittest.skipUnless(hasattr(_testcapi, 'decref_freed_object'), 'need _testcapi.decref_freed_object()') + @support.skip_if_sanitizer("use after free on purpose", + address=True, memory=True, ub=True) def test_decref_freed_object(self): code = """ import _testcapi |