]> git.vpit.fr Git - perl/modules/Test-Leaner.git/commitdiff
Silence ugly 'redefined' warnings in t/01-import.t with old Test::More
authorVincent Pit <vince@profvince.com>
Fri, 8 Apr 2011 18:30:04 +0000 (20:30 +0200)
committerVincent Pit <vince@profvince.com>
Fri, 8 Apr 2011 18:30:04 +0000 (20:30 +0200)
t/01-import.t

index 9fe04df4ee1a6b15fba5a885fb87d180f8f5e426..9027e9963135acad44277f60eceb8bfa5ef44d1a 100644 (file)
@@ -32,6 +32,10 @@ my @syms = qw<
  BAIL_OUT
 >;
 
+unless ($Test::More::VERSION > 0.51) {
+ delete $main::{$_} for @syms;
+}
+
 for (@syms) {
  eval { Test::Leaner->import(import => [ $_ ]) };
  tm_is $@,            '',                          "import $_";