Skip to content

Commit 5590ea4

Browse files
[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 109c59e) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent 0f98c66 commit 5590ea4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/test/test_pyexpat.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,8 +968,7 @@ class ExternalEntityParserCreateErrorTest(unittest.TestCase):
968968
def setUpClass(cls):
969969
cls.testcapi = import_helper.import_module('_testcapi')
970970

971-
@unittest.skipIf(support.Py_TRACE_REFS,
972-
'Py_TRACE_REFS conflicts with testcapi.set_nomemory')
971+
@support.nomemtest
973972
def test_error_path_no_crash(self):
974973
# When an allocation inside ExternalEntityParserCreate fails,
975974
# the partially-initialized subparser is deallocated. This

0 commit comments

Comments
 (0)