X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Ficdt%2Fengine_specific%2Fmssql.t;h=e65a994ea07f378ed0d36950a43835795beab2ba;hb=bbf6a9a5d39cbf1c9d22cccd298ae95ac0fef694;hp=523530a275d073d62cddb3194c66b4cc19002e6e;hpb=54a9a08890c1784af806b643a3671faf1312c2fc;p=dbsrgits%2FDBIx-Class.git diff --git a/t/icdt/engine_specific/mssql.t b/t/icdt/engine_specific/mssql.t index 523530a..e65a994 100644 --- a/t/icdt/engine_specific/mssql.t +++ b/t/icdt/engine_specific/mssql.t @@ -5,8 +5,8 @@ use warnings; use Test::More; use Test::Exception; -use Scope::Guard (); use Try::Tiny; +use DBIx::Class::_Util 'scope_guard'; use lib qw(t/lib); use DBICTest; @@ -52,7 +52,7 @@ for my $connect_info (@connect_info) { } } - my $guard = Scope::Guard->new(sub{ cleanup($schema) }); + my $guard = scope_guard { cleanup($schema) }; # $^W because DBD::ADO is a piece of crap try { local $^W = 0; $schema->storage->dbh->do("DROP TABLE track") };