X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Ficdt%2Fengine_specific%2Fmsaccess.t;h=9e647fbe976b1675c14766534f4f214df96e129c;hb=bbf6a9a5d39cbf1c9d22cccd298ae95ac0fef694;hp=ed5830f7eef667ddba098d9925728a7edb111855;hpb=54a9a08890c1784af806b643a3671faf1312c2fc;p=dbsrgits%2FDBIx-Class.git diff --git a/t/icdt/engine_specific/msaccess.t b/t/icdt/engine_specific/msaccess.t index ed5830f..9e647fb 100644 --- a/t/icdt/engine_specific/msaccess.t +++ b/t/icdt/engine_specific/msaccess.t @@ -4,8 +4,8 @@ use strict; use warnings; use Test::More; -use Scope::Guard (); use Try::Tiny; +use DBIx::Class::_Util 'scope_guard'; use lib qw(t/lib); use DBICTest; @@ -36,7 +36,7 @@ for my $connect_info (@connect_info) { quote_names => 1, }); - my $guard = Scope::Guard->new(sub { cleanup($schema) }); + my $guard = scope_guard { cleanup($schema) }; try { local $^W = 0; $schema->storage->dbh->do('DROP TABLE track') }; $schema->storage->dbh->do(<<"SQL");