From: Dagfinn Ilmari Mannsåker Date: Thu, 9 Aug 2012 12:08:50 +0000 (+0100) Subject: fix skipping when Sub::Exporter isn't installed X-Git-Tag: v0.001004~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=26aea93e2a6f6f2bcc8978e99e0c9c3b8335f846;p=p5sagit%2FSub-Exporter-Progressive.git fix skipping when Sub::Exporter isn't installed --- diff --git a/Changes b/Changes index a78bebf..16f1af4 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for {{$dist->name}} {{$NEXT}} + - fix skipping when Sub::Exporter isn't installed 0.001003 2012-08-01 12:47:28 America/Chicago - remove warning if there are no defaults diff --git a/t/sex.t b/t/sex.t index 8a63f89..103b0d1 100644 --- a/t/sex.t +++ b/t/sex.t @@ -3,8 +3,10 @@ use strict; use warnings; use Test::More; -plan skip_all => 'Sub::Exporter not installed' - unless eval { require Sub::Exporter }; +BEGIN { + plan skip_all => 'Sub::Exporter not installed' + unless eval { require Sub::Exporter }; +} use List::Util 'first'; use lib 't/lib';