From: Jesse Luehrs Date: Thu, 9 Apr 2009 00:50:37 +0000 (-0500) Subject: clean up warnings in test files due to constructors not being inlined X-Git-Tag: 0.75~23 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=77ed022ced279fde3f1cc8b76324e2d1cffde6e6;p=gitmo%2FMoose.git clean up warnings in test files due to constructors not being inlined --- diff --git a/t/060_compat/003_foreign_inheritence.t b/t/060_compat/003_foreign_inheritence.t index 1086699..f99cac9 100644 --- a/t/060_compat/003_foreign_inheritence.t +++ b/t/060_compat/003_foreign_inheritence.t @@ -34,7 +34,7 @@ use Test::Exception; return $class->meta->new_object( '__INSTANCE__' => $super, @_ ); } - __PACKAGE__->meta->make_immutable( debug => 0 ); + __PACKAGE__->meta->make_immutable( inline_constructor => 0, debug => 0 ); package Bucket; use metaclass 'Class::MOP::Class'; diff --git a/t/600_todo_tests/003_immutable_n_around.t b/t/600_todo_tests/003_immutable_n_around.t index c7b66f9..8c47b56 100644 --- a/t/600_todo_tests/003_immutable_n_around.t +++ b/t/600_todo_tests/003_immutable_n_around.t @@ -48,6 +48,7 @@ tests: { } if ( @classes ) { + local $SIG{__WARN__} = sub {}; ( shift @classes )->meta->make_immutable; redo tests; }