From: Nicholas Clark Date: Sat, 7 May 2011 18:59:24 +0000 (+0200) Subject: Reinstate weaken(), inadvertently removed by 8c394e1251fdfe38. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=811a099c10b876edcc1167a58cf80bf42bc5eb4c;p=p5sagit%2FDevel-Size.git Reinstate weaken(), inadvertently removed by 8c394e1251fdfe38. The test isn't testing as much as intended without it. --- diff --git a/t/basic.t b/t/basic.t index e39799a..4166e2d 100644 --- a/t/basic.t +++ b/t/basic.t @@ -85,6 +85,7 @@ cmp_ok (total_size(\&LARGE), '>', 8192, my $a = []; my $b = \$a; # making a weakref upgrades the target to PVMG and adds magic + weaken $b; is(total_size($a), total_size([]), 'Any intial reference is dereferenced and discarded'); }