Skip to content

Commit 5e288a2

Browse files
committed
fix: ingore not requires_subprocess
Signed-off-by: yihong0618 <[email protected]>
1 parent 8d3c3a8 commit 5e288a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_atexit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ def callback():
195195
# Python built with Py_TRACE_REFS fail with a fatal error in
196196
# _PyRefchain_Trace() on memory allocation error.
197197
@unittest.skipIf(support.Py_TRACE_REFS, 'cannot test Py_TRACE_REFS build')
198+
@support.requires_subprocess()
198199
def test_atexit_with_low_memory(self):
199200
# gh-140080: Test that setting low memory after registering an atexit
200201
# callback doesn't cause an infinite loop during finalization.
@@ -226,7 +227,6 @@ def callback():
226227

227228
self.assertIn(proc.returncode, (0, 1))
228229
self.assertNotIn(b"hello", proc.stdout)
229-
# MemoryError should appear in stderr
230230
self.assertIn(b"MemoryError", proc.stderr)
231231

232232

0 commit comments

Comments
 (0)