Skip to content

Commit 2c7e890

Browse files
[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 109c59e) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent 400c7ec commit 2c7e890

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
@@ -1008,8 +1008,7 @@ class ExternalEntityParserCreateErrorTest(unittest.TestCase):
10081008
def setUpClass(cls):
10091009
cls.testcapi = import_helper.import_module('_testcapi')
10101010

1011-
@unittest.skipIf(support.Py_TRACE_REFS,
1012-
'Py_TRACE_REFS conflicts with testcapi.set_nomemory')
1011+
@support.nomemtest
10131012
def test_error_path_no_crash(self):
10141013
# When an allocation inside ExternalEntityParserCreate fails,
10151014
# the partially-initialized subparser is deallocated. This

0 commit comments

Comments
 (0)