From: Luke Saunders Date: Thu, 24 Jul 2008 09:58:26 +0000 (+0000) Subject: skipped test which relies on module if module isn't present X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c959e8d06362537fbc865d703786b399d0806212;p=dbsrgits%2FDBIx-Class-Historic.git skipped test which relies on module if module isn't present --- diff --git a/t/96_is_deteministic_value.t b/t/96_is_deteministic_value.t index 6e04252..43a9daa 100644 --- a/t/96_is_deteministic_value.t +++ b/t/96_is_deteministic_value.t @@ -3,11 +3,13 @@ use warnings; # 6 tests -use Test::More qw(no_plan); +use Test::More; use lib qw(t/lib); use DBICTest; use DateTime; -use DateTime::Format::Strptime; +eval "use DateTime::Format::Strptime"; +plan skip_all => 'DateTime::Format::Strptime required' if $@; +plan 'no_plan'; use Test::Exception; my $schema = DBICTest->init_schema();