summaryrefslogtreecommitdiffstats
path: root/t/fun/defaults.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-07-21 18:50:38 -0400
committerJesse Luehrs <doy@tozt.net>2013-07-21 18:50:38 -0400
commitf870cc33bcacf9872677dae83a5d781e72664fb9 (patch)
treea30753a10f7c9542d6a53261e05bff72847d49f1 /t/fun/defaults.t
parentdfed2b264de2652cfdeecbaf8cb9b059c77b44cf (diff)
downloadparse-keyword-f870cc33bcacf9872677dae83a5d781e72664fb9.tar.gz
parse-keyword-f870cc33bcacf9872677dae83a5d781e72664fb9.zip
apparently Test::Requires doesn't allow loading without importing
Diffstat (limited to 't/fun/defaults.t')
-rw-r--r--t/fun/defaults.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/fun/defaults.t b/t/fun/defaults.t
index 923e545..0bbc7cb 100644
--- a/t/fun/defaults.t
+++ b/t/fun/defaults.t
@@ -4,7 +4,11 @@ use warnings;
use Test::More;
use lib 't/fun/lib';
-use Test::Requires 'Sub::Name';
+BEGIN {
+ if (!eval { require Sub::Name }) {
+ plan skip_all => "This test requires Sub::Name";
+ }
+}
use Fun;