From 907e4c3a41dda4bc787338194afb58bfd822ede5 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 24 Mar 2026 17:34:12 +0100 Subject: [PATCH] gh-144984: Skip test under tracerefs (GH-146218) (cherry picked from commit 119fce7b886384fe9079b95345fa83582c08a577) Co-authored-by: Petr Viktorin --- Lib/test/test_pyexpat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py index 3b4ee07b70b845..465f65a03b9e15 100644 --- a/Lib/test/test_pyexpat.py +++ b/Lib/test/test_pyexpat.py @@ -842,6 +842,8 @@ 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') def test_error_path_no_crash(self): # When an allocation inside ExternalEntityParserCreate fails, # the partially-initialized subparser is deallocated. This