projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Only load DBICTest::Schema when needed in tests
[dbsrgits/DBIx-Class.git]
/
t
/
lib
/
DBICTest
/
BaseSchema.pm
diff --git
a/t/lib/DBICTest/BaseSchema.pm
b/t/lib/DBICTest/BaseSchema.pm
index
cdc7a02
..
c68d7fd
100644
(file)
--- a/
t/lib/DBICTest/BaseSchema.pm
+++ b/
t/lib/DBICTest/BaseSchema.pm
@@
-257,7
+257,11
@@
sub clone {
}
END {
- assert_empty_weakregistry($weak_registry, 'quiet');
+ # Make sure we run after any cleanup in other END blocks
+ require B;
+ push @{ B::end_av()->object_2svref }, sub {
+ assert_empty_weakregistry($weak_registry, 'quiet');
+ };
}
1;