Skip to content

Commit a3aa50a

Browse files
[3.13] gh-152402: Use support.nomemtest in test_pyexpat (GH-152403) (#152413)
gh-152402: Use `support.nomemtest` in `test_pyexpat` (GH-152403) (cherry picked from commit 109c59e) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent d1faeda commit a3aa50a

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
@@ -964,8 +964,7 @@ class ExternalEntityParserCreateErrorTest(unittest.TestCase):
964964
def setUpClass(cls):
965965
cls.testcapi = import_helper.import_module('_testcapi')
966966

967-
@unittest.skipIf(support.Py_TRACE_REFS,
968-
'Py_TRACE_REFS conflicts with testcapi.set_nomemory')
967+
@support.nomemtest
969968
def test_error_path_no_crash(self):
970969
# When an allocation inside ExternalEntityParserCreate fails,
971970
# the partially-initialized subparser is deallocated. This

0 commit comments

Comments
 (0)