X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F003-immutable.t;fp=t%2F003-immutable.t;h=618391e9228c94e106982cebd07246645e010d58;hb=e01c727755cd4ef07804f34803c4329248820f20;hp=05ff974ea5d1a0f41e40f6f88c3931e310ec4d1a;hpb=eb98d2ddaf2f2e01386719cd8fba9bb432bcd87a;p=gitmo%2FMooseX-Singleton.git diff --git a/t/003-immutable.t b/t/003-immutable.t index 05ff974..618391e 100644 --- a/t/003-immutable.t +++ b/t/003-immutable.t @@ -5,12 +5,8 @@ use Scalar::Util qw( refaddr ); use Test::More; BEGIN { - unless ( eval 'use Test::Warn; 1' ) { - plan skip_all => 'These tests require Test::Warn'; - } - else { - plan tests => 18; - } + eval 'use Test::Warn'; + plan skip_all => 'These tests require Test::Warn' if $@; } { @@ -95,3 +91,5 @@ is( MooseX::Singleton::Test->distinct_keys, 0, "Package->clear works" ); 'singleton is not randomly destroyed' ); } + +done_testing;