projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
One extra cleanup pass before asserting weakregistry is empty
[dbsrgits/DBIx-Class.git]
/
t
/
lib
/
DBICTest
/
Util
/
LeakTracer.pm
diff --git
a/t/lib/DBICTest/Util/LeakTracer.pm
b/t/lib/DBICTest/Util/LeakTracer.pm
index
b3984b6
..
58790e4
100644
(file)
--- a/
t/lib/DBICTest/Util/LeakTracer.pm
+++ b/
t/lib/DBICTest/Util/LeakTracer.pm
@@
-166,6
+166,9
@@
sub assert_empty_weakregistry {
croak 'Expecting a registry hashref' unless ref $weak_registry eq 'HASH';
+ defined $weak_registry->{$_}{weakref} or delete $weak_registry->{$_}
+ for keys %$weak_registry;
+
return unless keys %$weak_registry;
my $tb = eval { Test::Builder->new }