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