From 1f4b022c38faba208528d0d5c993d569682b2a09 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 14 May 2019 03:32:02 +0000 Subject: t/nntp.t: skip if Data::Dumper is missing We can revisit this, later; but Data::Dumper requires a separate package for CentOS-7 users, at least. --- t/nntp.t | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 't') diff --git a/t/nntp.t b/t/nntp.t index 47b14422..c4b9737c 100644 --- a/t/nntp.t +++ b/t/nntp.t @@ -3,9 +3,8 @@ use strict; use warnings; use Test::More; -use Data::Dumper; -foreach my $mod (qw(DBD::SQLite Search::Xapian)) { +foreach my $mod (qw(DBD::SQLite Search::Xapian Data::Dumper)) { eval "require $mod"; plan skip_all => "$mod missing for nntp.t" if $@; } @@ -15,7 +14,7 @@ use_ok 'PublicInbox::Inbox'; { sub quote_str { - my (undef, $s) = split(/ = /, Dumper($_[0]), 2); + my (undef, $s) = split(/ = /, Data::Dumper::Dumper($_[0]), 2); $s =~ s/;\n//; $s; } -- cgit v1.2.3-24-ge0c7