summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/lexical-subs.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/lexical-subs.t b/t/lexical-subs.t
index dbcd178..db425c9 100644
--- a/t/lexical-subs.t
+++ b/t/lexical-subs.t
@@ -3,7 +3,11 @@ use strict;
use warnings;
use Test::More;
-use Test::Requires '5.018';
+BEGIN {
+ if (!eval { require 5.018; 1 }) {
+ plan skip_all => "this test requires 5.18";
+ }
+}
use 5.018;
use Eval::Closure;