diff options
Diffstat (limited to 't/try/given_when.t')
-rw-r--r-- | t/try/given_when.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/try/given_when.t b/t/try/given_when.t index c3af21e..df7460a 100644 --- a/t/try/given_when.t +++ b/t/try/given_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'; |