skipped test which relies on module if module isn't present
Luke Saunders [Thu, 24 Jul 2008 09:58:26 +0000 (09:58 +0000)]
t/96_is_deteministic_value.t

index 6e04252..43a9daa 100644 (file)
@@ -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();