Skip to content

Commit b3c116d

Browse files
authored
Use @support.nomemtest
1 parent 6b7d9b0 commit b3c116d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lib/test/test_str.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,7 @@ def test_replace_id(self):
607607
text = 'abc def'
608608
self.assertIs(text.replace(pattern, pattern), text)
609609

610-
@support.cpython_only
611-
@unittest.skipIf(_testcapi is None, reason="_testcapi is required for this test")
612-
@unittest.skipIf(support.Py_TRACE_REFS, 'cannot test Py_TRACE_REFS build')
610+
@support.nomemtest
613611
def test_replace_oom(self):
614612
# https://github.com/python/cpython/issues/152228
615613
s1 = "轘" * 4

0 commit comments

Comments
 (0)