Skip to content

Commit 7ab0231

Browse files
committed
fix: indentation level for test code in test
Signed-off-by: yihong0618 <[email protected]>
1 parent 1958a7a commit 7ab0231

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Lib/test/test_atexit.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,15 @@ def test_atexit_with_low_memory(self):
198198
# gh-140080: Test that setting low memory after registering an atexit
199199
# callback doesn't cause an infinite loop during finalization.
200200
code = textwrap.dedent("""
201-
import atexit
202-
import _testcapi
201+
import atexit
202+
import _testcapi
203203
204-
def callback():
205-
print("hello")
204+
def callback():
205+
print("hello")
206206
207-
atexit.register(callback)
208-
# Simulate low memory condition
209-
_testcapi.set_nomemory(0)
207+
atexit.register(callback)
208+
# Simulate low memory condition
209+
_testcapi.set_nomemory(0)
210210
""")
211211

212212
with tempfile.NamedTemporaryFile(mode='w', suffix='.py') as f:

0 commit comments

Comments
 (0)