From 1855ce2cfb1b789caccd3e2c872d88422e8c5e95 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 17 Jan 2015 18:13:05 -0500 Subject: fix tests on 5.21.7 (sprout, #4) --- Changes | 1 + t/close-over.t | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index ceae915..d79372b 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for Eval-Closure {{$NEXT}} + - fix tests under blead (sprout, #4) 0.11 2013-07-30 - add "alias => 1" option for making closure variables actually alias the diff --git a/t/close-over.t b/t/close-over.t index 254ec40..23b2873 100644 --- a/t/close-over.t +++ b/t/close-over.t @@ -44,9 +44,9 @@ use Test::Requires 'PadWalker'; $b = $b->OUTSIDE; } my @visible_in_outer_scope - = grep { $_ ne '&' } + = grep { defined and $_ ne '&' } map { $_->PV } - grep { $_->isa('B::PV') } + grep { $_->can('PV') } map { $_->PADLIST->ARRAYelt(0)->ARRAY } @scopes; -- cgit v1.2.3-54-g00ecf