Skip to content

Commit

Permalink
Revert the eval{} to eval ""
Browse files Browse the repository at this point in the history
As per feedback, the eval{} was wrong and will unconditionally try
to load the module and throw an exception if it isn't (because use
is compile-time).
  • Loading branch information
lancew committed Aug 27, 2016
1 parent 00ce6ec commit 5135c30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion t/99pod.t
@@ -1,7 +1,7 @@
use strict;
use warnings;
use Test::More;
eval { use Test::Pod 1.00 };
eval "use Test::Pod 1.00";
plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
my @poddirs = qw( blib );
all_pod_files_ok( all_pod_files( @poddirs ) );
2 changes: 1 addition & 1 deletion t/cpan-changes.t
Expand Up @@ -5,7 +5,7 @@ use warnings;

use Test::More;

eval { use Test::CPAN::Changes };
eval "use Test::CPAN::Changes";
plan skip_all => 'Test::CPAN::Changes required for this test' if $@;

changes_ok();
Expand Down
2 changes: 1 addition & 1 deletion t/style-trailing-space.t
Expand Up @@ -5,7 +5,7 @@ use warnings;

use Test::More;

eval { use Test::TrailingSpace };
eval "use Test::TrailingSpace";
if ($@)
{
plan skip_all => "Test::TrailingSpace required for trailing space test.";
Expand Down

0 comments on commit 5135c30

Please sign in to comment.