Skip to content
Prev Previous commit
Next Next commit
fix: ingore not requires_subprocess
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
  • Loading branch information
yihong0618 committed Oct 14, 2025
commit 5e288a2681327be32c525347a9fdcc754f34a0cd
2 changes: 1 addition & 1 deletion Lib/test/test_atexit.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def callback():
# Python built with Py_TRACE_REFS fail with a fatal error in
# _PyRefchain_Trace() on memory allocation error.
@unittest.skipIf(support.Py_TRACE_REFS, 'cannot test Py_TRACE_REFS build')
@support.requires_subprocess()
def test_atexit_with_low_memory(self):
# gh-140080: Test that setting low memory after registering an atexit
# callback doesn't cause an infinite loop during finalization.
Expand Down Expand Up @@ -226,7 +227,6 @@ def callback():

self.assertIn(proc.returncode, (0, 1))
self.assertNotIn(b"hello", proc.stdout)
# MemoryError should appear in stderr
self.assertIn(b"MemoryError", proc.stderr)


Expand Down
Loading