From 33a055a139517143c2975d2eae8964b5a5e9bd16 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 4 Jul 2014 18:06:14 -0400 Subject: stop using Test::Requires here Package::Anon isn't available on all perl versions, so the BAIL_OUT behavior when running release tests isn't appropriate here --- t/anon-basic.t | 6 +++++- t/anon.t | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/anon-basic.t b/t/anon-basic.t index 32f5c9c..c3ef3c4 100644 --- a/t/anon-basic.t +++ b/t/anon-basic.t @@ -5,7 +5,11 @@ use lib 't/lib'; use Test::More; use Test::Fatal; -use Test::Requires 'Package::Anon'; +BEGIN { + if (!eval { require Package::Anon; 1 }) { + plan skip_all => "Package::Anon is required for this test"; + } +} use Package::Stash; use Symbol; diff --git a/t/anon.t b/t/anon.t index 8b7f7aa..0e37604 100644 --- a/t/anon.t +++ b/t/anon.t @@ -5,7 +5,11 @@ use Test::More; use Test::Fatal; use lib 't/lib'; -use Test::Requires 'Package::Anon'; +BEGIN { + if (!eval { require Package::Anon; 1 }) { + plan skip_all => "Package::Anon is required for this test"; + } +} use Package::Stash; use Symbol; -- cgit v1.2.3-54-g00ecf