summaryrefslogtreecommitdiffstats
path: root/t/fun/state.t
diff options
context:
space:
mode:
Diffstat (limited to 't/fun/state.t')
-rw-r--r--t/fun/state.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/fun/state.t b/t/fun/state.t
index 68f2c17..7cb1a86 100644
--- a/t/fun/state.t
+++ b/t/fun/state.t
@@ -5,7 +5,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 5.10.0;
use Fun;