X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F32-hash.t;h=c1e0831229813ecb303f7b97506745a9c073f22e;hb=30631ed72aef81f7a424009effb91f408481463e;hp=1bbd3001e800f665d558272dc8d4c88591b36605;hpb=3bc98bdbdb230943e7fb3135e325f10013acac2d;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/32-hash.t b/t/32-hash.t index 1bbd300..c1e0831 100644 --- a/t/32-hash.t +++ b/t/32-hash.t @@ -5,7 +5,7 @@ use warnings; use Test::More tests => (2 * 21 + 7) + (2 * 5 + 5) + 1; -use Variable::Magic qw; +use Variable::Magic qw; use lib 't/lib'; use Variable::Magic::TestWatcher; @@ -76,11 +76,13 @@ watch { dispell %h, $wiz } { }, 'dispell'; SKIP: { my $SKIP; - unless (VMG_UVAR) { + if (!VMG_UVAR) { $SKIP = 'uvar magic'; } else { - eval "use B::Deparse"; - $SKIP = 'B::Deparse' if $@; + local $@; + unless (eval { require B::Deparse; 1 }) { + $SKIP = 'B::Deparse'; + } } if ($SKIP) { $SKIP .= ' required to test uvar/clear interaction fix';