Revert 2c2bc4e5 - it is entirely superseded by cb551b07, 2baba3d9 and 83eef562
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / BaseSchema.pm
index c68d7fd..cdc7a02 100644 (file)
@@ -257,11 +257,7 @@ sub clone {
 }
 
 END {
-  # 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');
-  };
+  assert_empty_weakregistry($weak_registry, 'quiet');
 }
 
 1;