mirror of https://github.com/python/cpython
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:
parent
67d9363372
commit
0a31ff0050
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue