From df0e7383934e0ca3e38824d736798774c706e047 Mon Sep 17 00:00:00 2001 From: Max Maischein Date: Sun, 5 Apr 2009 19:48:09 +0000 Subject: [PATCH] Fixed t/12* to make Test::NoWarnings optional --- t/12_unicode.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; #