From: Dave Rolsky Date: Mon, 29 Sep 2008 14:25:37 +0000 (+0000) Subject: when loading Test::Warn, require at least 0.10 X-Git-Tag: 0.59~33 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2bacc3876f5c1db5ca506a19f40fb0b37571cd9d;p=gitmo%2FMoose.git when loading Test::Warn, require at least 0.10 --- diff --git a/Changes b/Changes index fc752c0..5af3c2c 100644 --- a/Changes +++ b/Changes @@ -7,6 +7,10 @@ Revision history for Perl extension Moose - Creating a anonymous subtype with both a constraint and a message failed with a very unhelpful error, but should just work. Reported by t0m. (Dave Rolsky) + * Tests + - Some tests that used Test::Warn if it was available failed + with older versions of Test::Warn. Reported by Fayland. (Dave + Rolsky) 0.58 !! This release has an incompatible change regarding !! diff --git a/t/000_recipes/extending/001_base_class.t b/t/000_recipes/extending/001_base_class.t index f140fd4..35141bf 100644 --- a/t/000_recipes/extending/001_base_class.t +++ b/t/000_recipes/extending/001_base_class.t @@ -7,8 +7,8 @@ use Test::More; use Test::Exception; BEGIN { - unless ( eval 'use Test::Warn; 1' ) { - plan skip_all => 'These tests require Test::Warn'; + unless ( eval 'use Test::Warn 0.10; 1' ) { + plan skip_all => 'These tests require Test::Warn 0.10+'; } else { plan tests => 4; diff --git a/t/050_metaclasses/012_moose_exporter.t b/t/050_metaclasses/012_moose_exporter.t index 7528779..3357ae1 100644 --- a/t/050_metaclasses/012_moose_exporter.t +++ b/t/050_metaclasses/012_moose_exporter.t @@ -7,8 +7,8 @@ use Test::More; use Test::Exception; BEGIN { - unless ( eval 'use Test::Warn; 1' ) { - plan skip_all => 'These tests require Test::Warn'; + unless ( eval 'use Test::Warn 0.10; 1' ) { + plan skip_all => 'These tests require Test::Warn 0.10'; } else { plan tests => 40;