From: Vincent Pit Date: Fri, 8 Apr 2011 18:30:04 +0000 (+0200) Subject: Silence ugly 'redefined' warnings in t/01-import.t with old Test::More X-Git-Tag: v0.03~7 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FTest-Leaner.git;a=commitdiff_plain;h=378088097e64037f79bdae71f517be8b4a443929 Silence ugly 'redefined' warnings in t/01-import.t with old Test::More --- diff --git a/t/01-import.t b/t/01-import.t index 9fe04df..9027e99 100644 --- a/t/01-import.t +++ b/t/01-import.t @@ -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 $_";