summaryrefslogtreecommitdiffstats
path: root/t/try/when.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/try/when.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/try/when.t')
-rw-r--r--t/try/when.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/try/when.t b/t/try/when.t
index 96754aa..749ad52 100644
--- a/t/try/when.t
+++ b/t/try/when.t
@@ -5,7 +5,11 @@ use Test::More;
use lib 't/try/lib';
use 5.014;
-use Test::Requires 'Try::Tiny';
+BEGIN {
+ if (!eval { require Try::Tiny }) {
+ plan skip_all => "This test requires Try::Tiny";
+ }
+}
no if $] >= 5.018, warnings => 'experimental::smartmatch';