While it is important to check this during namespace cleansing checks, it
actually makes no difference whatsoever during leaktests - things will either
be closed over and thus seen, or they won't be
sub assert_empty_weakregistry {
my ($weak_registry, $quiet) = @_;
- Sub::Defer::undefer_all();
-
# in case we hooked bless any extra object creation will wreak
# havoc during the assert phase
local *CORE::GLOBAL::bless;