X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F749sqlanywhere.t;h=a52b5bda6ddd527e91f1dd41ab65497cdd864e54;hb=bbf6a9a5d39cbf1c9d22cccd298ae95ac0fef694;hp=396e103223fe080d8109f573430a41de3cb2ff2b;hpb=65d351219882184861384aedac6f251b6797d0d7;p=dbsrgits%2FDBIx-Class.git diff --git a/t/749sqlanywhere.t b/t/749sqlanywhere.t index 396e103..a52b5bd 100644 --- a/t/749sqlanywhere.t +++ b/t/749sqlanywhere.t @@ -3,9 +3,9 @@ use warnings; use Test::More; use Test::Exception; -use Scope::Guard (); use Try::Tiny; use DBIx::Class::Optional::Dependencies (); +use DBIx::Class::_Util 'scope_guard'; use lib qw(t/lib); use DBICTest; @@ -48,7 +48,7 @@ foreach my $info (@info) { auto_savepoint => 1 }); - my $guard = Scope::Guard->new(sub{ cleanup($schema) }); + my $guard = scope_guard { cleanup($schema) }; my $dbh = $schema->storage->dbh;