Temporary fixes for 5.13.x $@ handling
[dbsrgits/DBIx-Class.git] / t / 52leaks.t
index 2f1867d..ad781ac 100644 (file)
@@ -165,6 +165,10 @@ for my $slot (keys %$weak_registry) {
     delete $weak_registry->{$slot}
       unless $cleared->{hash_merge_singleton}{$weak_registry->{$slot}{weakref}{behavior}}++;
   }
+  elsif ($slot =~ /^__TxnScopeGuard__FIXUP__/) {
+    die 'The $@ debacle should have been fixed by now!!!' if $] >= 5.013008;
+    delete $weak_registry->{$slot};
+  }
 }