Skip to content

Commit 14471f1

Browse files
committed
Reword the cleanup comment
1 parent 30fca0b commit 14471f1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Lib/test/test_lazy_import/__init__.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ def test_deeply_dotted_name(self):
317317
m.m = m
318318
ns = {"__builtins__": {"__lazy_import__": __lazy_import__,
319319
"__import__": lambda *args: m}}
320-
# Free the chain on the main thread, which has the stack to do it.
320+
# Free the chain on the main thread: a thread with a small C stack
321+
# postpones deep deallocations and never gets back to them.
321322
self.addCleanup(ns.clear)
322323
exec("lazy import " + ".".join(["m"] * 10_000) + " as x", ns)
323324
with contextlib.suppress(RecursionError):

0 commit comments

Comments
 (0)