diff --git a/t/12_unicode.t b/t/12_unicode.t index 13dbc72..a0fc2c8 100644 --- a/t/12_unicode.t +++ b/t/12_unicode.t @@ -9,8 +9,9 @@ BEGIN { $^W = 1; } -use Test::More tests => 16; -use Test::NoWarnings; +my $have_nowarnings; +BEGIN { eval 'use Test::NoWarnings; $have_nowarnings = 1' }; +use Test::More tests => 15+($have_nowarnings || 0); use t::lib::Test; #