From: gfx Date: Thu, 27 Aug 2009 08:42:07 +0000 (+0900) Subject: Fix method leaking test on 5.10.1 (?) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=001326117cd18a3ef7880a537e4e7c24b8e6a41e;p=gitmo%2FMoose.git Fix method leaking test on 5.10.1 (?) --- diff --git a/t/020_attributes/031_method_leak.t b/t/020_attributes/031_method_leak.t index 7ead624..137de9e 100755 --- a/t/020_attributes/031_method_leak.t +++ b/t/020_attributes/031_method_leak.t @@ -17,6 +17,12 @@ use Class::MOP; use Moose; } +{ + # prepare all the method cache + my $meta = Foo->meta; + $meta->add_attribute(foo => (is => 'rw')); + $meta->remove_attribute('foo'); +} my $expected = ($] == 5.010_000) ? 3 : 0; # for a bug on 5.10.0