gh-144984: Skip test under tracerefs (GH-146218)

This commit is contained in:
Petr Viktorin 2026-03-24 17:34:12 +01:00 committed by GitHub
parent 951675c18a
commit 119fce7b88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -854,6 +854,8 @@ class ExternalEntityParserCreateErrorTest(unittest.TestCase):
def setUpClass(cls):
cls.testcapi = import_helper.import_module('_testcapi')
@unittest.skipIf(support.Py_TRACE_REFS,
'Py_TRACE_REFS conflicts with testcapi.set_nomemory')
def test_error_path_no_crash(self):
# When an allocation inside ExternalEntityParserCreate fails,
# the partially-initialized subparser is deallocated. This