From: Tom Hukins Date: Tue, 28 Oct 2008 11:11:20 +0000 (+0000) Subject: Skip tests if DateTime is not installed. X-Git-Tag: v0.08240~297 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a14185ef4bcdc0515581f17d6ee2b21511f0cd38;p=dbsrgits%2FDBIx-Class.git Skip tests if DateTime is not installed. --- diff --git a/t/96_is_deteministic_value.t b/t/96_is_deteministic_value.t index 43a9daa..9f75f4d 100644 --- a/t/96_is_deteministic_value.t +++ b/t/96_is_deteministic_value.t @@ -6,7 +6,7 @@ use warnings; use Test::More; use lib qw(t/lib); use DBICTest; -use DateTime; +plan skip_all => "DateTime required" unless eval { require DateTime }; eval "use DateTime::Format::Strptime"; plan skip_all => 'DateTime::Format::Strptime required' if $@; plan 'no_plan';