X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F52leaks.t;h=5111b67387b1439e1519c1567babba2e93fb1d69;hb=b4ad8a74b2a7d41e0089af9514bf82753e9faf7a;hp=ce6d14c3dcae93dbaa34348ef48f0d3007548278;hpb=be6b397297ed9de2ad1f408eb7de2edcc74245d7;p=dbsrgits%2FDBIx-Class.git diff --git a/t/52leaks.t b/t/52leaks.t index ce6d14c..5111b67 100644 --- a/t/52leaks.t +++ b/t/52leaks.t @@ -291,9 +291,8 @@ for my $slot (keys %$weak_registry) { delete $weak_registry->{$slot} unless $cleared->{hash_merge_singleton}{$weak_registry->{$slot}{weakref}{behavior}}++; } - elsif ($slot =~ /^__TxnScopeGuard__FIXUP__/) { + elsif (DBIx::Class::_ENV_::INVISIBLE_DOLLAR_AT and $slot =~ /^__TxnScopeGuard__FIXUP__/) { delete $weak_registry->{$slot} - if $] > 5.013001 and $] < 5.013008; } elsif ($slot =~ /^DateTime::TimeZone/) { # DT is going through a refactor it seems - let it leak zones for now