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 1958a7a commit 7ab0231Copy full SHA for 7ab0231
Lib/test/test_atexit.py
@@ -198,15 +198,15 @@ def test_atexit_with_low_memory(self):
198
# gh-140080: Test that setting low memory after registering an atexit
199
# callback doesn't cause an infinite loop during finalization.
200
code = textwrap.dedent("""
201
- import atexit
202
- import _testcapi
+ import atexit
+ import _testcapi
203
204
- def callback():
205
- print("hello")
+ def callback():
+ print("hello")
206
207
- atexit.register(callback)
208
- # Simulate low memory condition
209
- _testcapi.set_nomemory(0)
+ atexit.register(callback)
+ # Simulate low memory condition
+ _testcapi.set_nomemory(0)
210
""")
211
212
with tempfile.NamedTemporaryFile(mode='w', suffix='.py') as f:
0 commit comments