moo.core.tests.test_security_builtins.test_next_default_on_exhaustion

moo.core.tests.test_security_builtins.test_next_default_on_exhaustion()

next(it, default) returns the default on StopIteration — no leak, no escape.