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.
This commit is contained in:
Victor Stinner 2023-09-19 16:42:08 +02:00 committed by GitHub
parent 67d9363372
commit 0a31ff0050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -325,6 +325,8 @@ class CAPITest(unittest.TestCase):
@unittest.skipUnless(hasattr(_testcapi, 'decref_freed_object'), @unittest.skipUnless(hasattr(_testcapi, 'decref_freed_object'),
'need _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): def test_decref_freed_object(self):
code = """ code = """
import _testcapi import _testcapi