From 5e3b6a842a4879bcf5fa66a086c7995c6075e229 Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Sat, 12 Nov 2016 13:51:55 -0800 Subject: use Test::Needs for optional module checks in tests developers now need to install Business::ISBN --- t/data.t | 9 --------- t/urn-isbn.t | 9 +-------- 2 files changed, 1 insertion(+), 17 deletions(-) (limited to 't') diff --git a/t/data.t b/t/data.t index 64920d9..31890ea 100644 --- a/t/data.t +++ b/t/data.t @@ -1,15 +1,6 @@ use strict; use warnings; -eval { - require MIME::Base64; -}; -if ($@) { - print "1..0\n"; - print $@; - exit; -} - print "1..22\n"; use URI; diff --git a/t/urn-isbn.t b/t/urn-isbn.t index d8985f7..f512bde 100644 --- a/t/urn-isbn.t +++ b/t/urn-isbn.t @@ -1,14 +1,7 @@ use strict; use warnings; -eval { - require Business::ISBN; -}; -if ($@) { - print "1..0 # Skipped: Needs the Business::ISBN module installed\n\n"; - print $@; - exit; -} +use Test::Needs 'Business::ISBN'; print "1..13\n"; -- cgit v1.2.1