From a257c7b578bef68634deef4e9947b3481a447174 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Sat, 27 Jun 2026 15:59:24 +0300 Subject: [PATCH] gh-152402: Use `nomemorytest` in `test_pyexpat` --- Lib/test/test_pyexpat.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py index 42309dd8f6c1903..98be98a25278024 100644 --- a/Lib/test/test_pyexpat.py +++ b/Lib/test/test_pyexpat.py @@ -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