From: sobolevn Date: Sat, 27 Jun 2026 13:29:10 +0000 (+0300) Subject: gh-152402: Use `support.nomemtest` in `test_pyexpat` (#152403) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=109c59e25f558732bfde8b65bbbf305a6a8a05d8;p=thirdparty%2FPython%2Fcpython.git gh-152402: Use `support.nomemtest` in `test_pyexpat` (#152403) --- diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py index 42309dd8f6c1..98be98a25278 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