From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 27 Jun 2026 13:55:04 +0000 (+0200) Subject: [3.14] gh-152402: Use `support.nomemtest` in `test_pyexpat` (GH-152403) (#152412) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5590ea4e479e7c40cbbdcac0fff85ba3e29a4cd3;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-152402: Use `support.nomemtest` in `test_pyexpat` (GH-152403) (#152412) gh-152402: Use `support.nomemtest` in `test_pyexpat` (GH-152403) (cherry picked from commit 109c59e25f558732bfde8b65bbbf305a6a8a05d8) Co-authored-by: sobolevn --- diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py index 88fbe76b8d1e..37dbb313b014 100644 --- a/Lib/test/test_pyexpat.py +++ b/Lib/test/test_pyexpat.py @@ -968,8 +968,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