Skip to content

Commit

Permalink
pythongh-109496: Skip test_capi.test_decref_freed_object() on ASAN
Browse files Browse the repository at this point in the history
Skip test_decref_freed_object() of test_capi.test_misc if Python is
built with ASAN, MSAN or UBSAN sanitizers.
  • Loading branch information
vstinner committed Sep 19, 2023
1 parent 67d9363 commit 27af608
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_capi/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ def test_negative_refcount(self):

@unittest.skipUnless(hasattr(_testcapi, 'decref_freed_object'),
'need _testcapi.decref_freed_object()')
@support.skip_if_sanitizer(reason="use after free on purpose",
address=True, memory=True, ub=True)
def test_decref_freed_object(self):
code = """
import _testcapi
Expand Down

0 comments on commit 27af608

Please sign in to comment.