gh-152402: Use support.nomemtest in test_pyexpat (#152403)

This commit is contained in:
sobolevn 2026-06-27 16:29:10 +03:00 committed by GitHub
parent 7bf63facfd
commit 109c59e25f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1057,8 +1057,7 @@ 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')
@support.nomemtest
def test_error_path_no_crash(self):
# When an allocation inside ExternalEntityParserCreate fails,
# the partially-initialized subparser is deallocated. This