use warnings;
use Test::More;
-use Scope::Guard ();
+use DBIx::Class::_Util 'scope_guard';
use lib qw(t/lib);
use DBICTest;
on_connect_call => 'datetime_setup',
});
- my $sg = Scope::Guard->new(sub { cleanup($schema) } );
+ my $sg = scope_guard { cleanup($schema) };
eval { $schema->storage->dbh->do('DROP TABLE event') };
$schema->storage->dbh->do(<<"SQL");