]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.15] gh-152402: Use `support.nomemtest` in `test_pyexpat` (GH-152403) (#152411)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 27 Jun 2026 13:58:20 +0000 (15:58 +0200)
committerGitHub <noreply@github.com>
Sat, 27 Jun 2026 13:58:20 +0000 (13:58 +0000)
gh-152402: Use `support.nomemtest` in `test_pyexpat` (GH-152403)
(cherry picked from commit 109c59e25f558732bfde8b65bbbf305a6a8a05d8)

Co-authored-by: sobolevn <mail@sobolevn.me>
Lib/test/test_pyexpat.py

index 5a42bbb5f087f406f2bb698005c146a2f8b2fbcb..b69e093392def37ff3c1bd34a8426d4cc47acf6c 100644 (file)
@@ -1008,8 +1008,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