From: Dave Rolsky Date: Sun, 19 Feb 2012 18:46:38 +0000 (-0600) Subject: Reduce test cases to minimal code which causes a leak X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dc77c65e6ea69eb8c280163cbf80cc602b979218;p=gitmo%2FMoose.git Reduce test cases to minimal code which causes a leak --- diff --git a/t/bugs/memory_leaks.t b/t/bugs/memory_leaks.t index c5bcfd3..49b3690 100644 --- a/t/bugs/memory_leaks.t +++ b/t/bugs/memory_leaks.t @@ -39,8 +39,7 @@ no_leaks_ok( no_leaks_ok( sub { - Moose::Meta::Class->create( 'MyClass', roles => ['MyRole'] ) - ->new_object; + Moose::Meta::Class->create( 'MyClass', roles => ['MyRole'] ); }, 'named class with roles is leak-free' ); @@ -71,7 +70,6 @@ no_leaks_ok( sub { my $meta = Moose::Meta::Class->create_anon_class; $meta->make_immutable; - $meta->new_object; }, 'making an anon class immutable is leak-free' );