X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Finflate%2Fdatetime_pg.t;h=d39496fb0a559f86f0d798c00183b476bd541014;hb=1f870d5a08fa1794734380d7c8bd6753cdcf8f6d;hp=2b19df47a08642927b8e4c4f535768876d3f27f2;hpb=65b386dfedd73d8b6e98d2f52039280fc63a8e7d;p=dbsrgits%2FDBIx-Class.git diff --git a/t/inflate/datetime_pg.t b/t/inflate/datetime_pg.t index 2b19df4..d39496f 100644 --- a/t/inflate/datetime_pg.t +++ b/t/inflate/datetime_pg.t @@ -5,18 +5,14 @@ use Test::More; use lib qw(t/lib); use DBICTest; +plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missing_for ('test_dt_pg') + unless DBIx::Class::Optional::Dependencies->req_ok_for ('test_dt_pg'); + { local $SIG{__WARN__} = sub { warn @_ if $_[0] !~ /extra \=\> .+? has been deprecated/ }; DBICTest::Schema->load_classes('EventTZPg'); } -eval { require DateTime::Format::Pg }; -plan $@ - ? ( skip_all => 'Need DateTime::Format::Pg for timestamp inflation tests') - : ( tests => 6 ) -; - - my $schema = DBICTest->init_schema(); { @@ -38,3 +34,5 @@ my $schema = DBICTest->init_schema(); is($event->ts_without_tz->microsecond, $dt->microsecond, 'timestamp without time zone microseconds survived'); } + +done_testing;