summaryrefslogtreecommitdiffstats
path: root/t/anon.t
diff options
context:
space:
mode:
Diffstat (limited to 't/anon.t')
-rw-r--r--t/anon.t14
1 files changed, 8 insertions, 6 deletions
diff --git a/t/anon.t b/t/anon.t
index 8b7f7aa..94d2f65 100644
--- a/t/anon.t
+++ b/t/anon.t
@@ -5,14 +5,16 @@ use Test::More;
use Test::Fatal;
use lib 't/lib';
-use Test::Requires 'Package::Anon';
-
use Package::Stash;
-use Symbol;
-plan skip_all => "Anonymous stashes in PP need at least perl 5.14"
- if $] < 5.014
- && $Package::Stash::IMPLEMENTATION eq 'PP';
+BEGIN {
+ plan skip_all => "Anonymous stashes in PP need at least perl 5.14"
+ if $] < 5.014
+ && $Package::Stash::IMPLEMENTATION eq 'PP';
+}
+
+use Test::Requires 'Package::Anon';
+use Symbol;
my $anon = Package::Anon->new;
my $stash = Package::Stash->new($anon);