do not let warnings kill an install
[gitmo/MooseX-AlwaysCoerce.git] / t / 04-parameterized-roles.t
index 340c16f..12f053a 100644 (file)
@@ -8,7 +8,7 @@ use Test::Requires {
 };
 
 plan tests => 12;
-use Test::NoWarnings 1.04 ':early';
+use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
 
 eval <<'EOF';
     package Role;