[3.13] gh-152402: Use support.nomemtest in test_pyexpat (GH-152403) (#152413)

gh-152402: Use `support.nomemtest` in `test_pyexpat` (GH-152403)
(cherry picked from commit 109c59e25f)

Co-authored-by: sobolevn <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2026-06-27 15:50:10 +02:00 committed by GitHub
parent d1faedab4e
commit a3aa50a488
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -964,8 +964,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