We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d3c3a8 commit 5e288a2Copy full SHA for 5e288a2
Lib/test/test_atexit.py
@@ -195,6 +195,7 @@ def callback():
195
# Python built with Py_TRACE_REFS fail with a fatal error in
196
# _PyRefchain_Trace() on memory allocation error.
197
@unittest.skipIf(support.Py_TRACE_REFS, 'cannot test Py_TRACE_REFS build')
198
+ @support.requires_subprocess()
199
def test_atexit_with_low_memory(self):
200
# gh-140080: Test that setting low memory after registering an atexit
201
# callback doesn't cause an infinite loop during finalization.
@@ -226,7 +227,6 @@ def callback():
226
227
228
self.assertIn(proc.returncode, (0, 1))
229
self.assertNotIn(b"hello", proc.stdout)
- # MemoryError should appear in stderr
230
self.assertIn(b"MemoryError", proc.stderr)
231
232
0 commit comments