diff options
Diffstat (limited to 't/fun/package.t')
-rw-r--r-- | t/fun/package.t | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/fun/package.t b/t/fun/package.t index 9c49066..66b2d7d 100644 --- a/t/fun/package.t +++ b/t/fun/package.t @@ -4,7 +4,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 Fun; |