moo.core.tests.test_security_builtins.test_enumerate_iteration_safe

moo.core.tests.test_security_builtins.test_enumerate_iteration_safe()

enumerate() returns an enumerate object whose __next__ and __iter__ are underscore-prefixed and blocked. The idiomatic for-loop path works normally and yields (int, value) tuples with no dangerous attributes.