summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-07-04 18:06:14 -0400
committerJesse Luehrs <doy@tozt.net>2014-07-04 18:06:14 -0400
commit33a055a139517143c2975d2eae8964b5a5e9bd16 (patch)
treeec3e16d25a56e22f7e4c271259a97c70cff8b54c
parentb4b3a71a15ecdab51ea01043e95fd59875bb35a1 (diff)
downloadpackage-stash-xs-33a055a139517143c2975d2eae8964b5a5e9bd16.tar.gz
package-stash-xs-33a055a139517143c2975d2eae8964b5a5e9bd16.zip
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
-rw-r--r--dist.ini1
-rw-r--r--t/anon-basic.t6
-rw-r--r--t/anon.t6
3 files changed, 10 insertions, 3 deletions
diff --git a/dist.ini b/dist.ini
index c01dae9..cbe1521 100644
--- a/dist.ini
+++ b/dist.ini
@@ -12,7 +12,6 @@ repository = github
skip = ^Variable::Magic$
[Prereqs / DevelopRequires]
-Package::Anon = 0
Test::LeakTrace = 0
; we maintain a Makefile.PL in the repository to be able to work without dzil,
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;