Skip to content

Commit 30fca0b

Browse files
committed
Shorten the cleanup comment
1 parent 8825790 commit 30fca0b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎Lib/test/test_lazy_import/__init__.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,7 @@ 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 in the main thread: in a thread with a small C stack,
321-
# deallocations deferred by the trashcan are never run.
320+
# Free the chain on the main thread, which has the stack to do it.
322321
self.addCleanup(ns.clear)
323322
exec("lazy import " + ".".join(["m"] * 10_000) + " as x", ns)
324323
with contextlib.suppress(RecursionError):

0 commit comments

Comments
 (0)