]> git.vpit.fr Git - perl/modules/Variable-Temp.git/commitdiff
Only plan after all the optional modules have been loaded
authorVincent Pit <vince@profvince.com>
Sun, 5 Apr 2015 17:59:44 +0000 (14:59 -0300)
committerVincent Pit <vince@profvince.com>
Sun, 5 Apr 2015 17:59:44 +0000 (14:59 -0300)
t/13-magic.t

index 69d049ee5067c862bdd6217ba6c65c348292b7b5..06f96984e322bc213051a00b4905d89c90620688 100644 (file)
@@ -5,13 +5,15 @@ use warnings;
 
 use Variable::Temp 'set_temp';
 
-use Test::More tests => 14;
+use Test::More;
 
 use lib 't/lib';
 use VPIT::TestHelpers;
 
 load_or_skip_all('Variable::Magic', '0.55', undef);
 
+plan tests => 14;
+
 my $replaced = 0;
 my $freed    = 0;