Generalize leak-trace handling
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest.pm
index 953b249..bccf8cf 100644 (file)
@@ -112,6 +112,8 @@ sub _database {
 }
 
 sub __mk_disconnect_guard {
+  return if DBICTest::RunMode->peepeeness; # leaks handles, delaying DESTROY, can't work right
+
   my $db_file = shift;
   return unless -f $db_file;