]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-152402: Use `support.nomemtest` in `test_pyexpat` (#152403)
authorsobolevn <mail@sobolevn.me>
Sat, 27 Jun 2026 13:29:10 +0000 (16:29 +0300)
committerGitHub <noreply@github.com>
Sat, 27 Jun 2026 13:29:10 +0000 (13:29 +0000)
Lib/test/test_pyexpat.py

index 42309dd8f6c1903819564115fda4e9f208d181d8..98be98a25278024e568ee4929757152048d67d6d 100644 (file)
@@ -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