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=bc7ade02e65df2aad41aa4d8ebdfb5b559ebbffd;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