diff options
Diffstat (limited to 't/anon-basic.t')
-rw-r--r-- | t/anon-basic.t | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/t/anon-basic.t b/t/anon-basic.t index 32f5c9c..5f7fb93 100644 --- a/t/anon-basic.t +++ b/t/anon-basic.t @@ -5,13 +5,16 @@ use lib 't/lib'; use Test::More; use Test::Fatal; -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 $Foo = Package::Anon->new('Foo'); $Foo->{SOME_CONSTANT} = \1; |