https://github.com/python/cpython/commit/2c7e8908cd57a9810fd9cc5c77a11d61fbfcde3c
commit: 2c7e8908cd57a9810fd9cc5c77a11d61fbfcde3c
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: sobolevn <[email protected]>
date: 2026-06-27T13:58:20Z
summary:

[3.15] gh-152402: Use `support.nomemtest` in `test_pyexpat` (GH-152403) 
(#152411)

gh-152402: Use `support.nomemtest` in `test_pyexpat` (GH-152403)
(cherry picked from commit 109c59e25f558732bfde8b65bbbf305a6a8a05d8)

Co-authored-by: sobolevn <[email protected]>

files:
M Lib/test/test_pyexpat.py

diff --git a/Lib/test/test_pyexpat.py b/Lib/test/test_pyexpat.py
index 5a42bbb5f087f4..b69e093392def3 100644
--- a/Lib/test/test_pyexpat.py
+++ b/Lib/test/test_pyexpat.py
@@ -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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to