X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=xt%2Fmsgtime_cmp.t;h=b77e57a626958563a0f19e4b17b97bb8a7653113;hb=2fc67a18b7ccd75ea6eb945f18203cbf4bcf228f;hp=469756c61357b3ec5b5373023a9b53f0a48ea2b8;hpb=bad45b4d566afb1dea0404589f0e608b91e7a7a0;p=public-inbox.git diff --git a/xt/msgtime_cmp.t b/xt/msgtime_cmp.t index 469756c6..b77e57a6 100644 --- a/xt/msgtime_cmp.t +++ b/xt/msgtime_cmp.t @@ -1,5 +1,5 @@ #!perl -w -# Copyright (C) 2019 all contributors +# Copyright (C) 2019-2020 all contributors # License: AGPL-3.0+ use strict; use Test::More; @@ -9,7 +9,7 @@ use PublicInbox::Inbox; use PublicInbox::Git; use PublicInbox::MsgTime qw(msg_timestamp msg_datestamp); use POSIX qw(strftime); -eval { require Date::Parse } or plan skip_all => "Date::Parse missing for $0"; +require_mods('Date::Parse'); my $git; my ($inboxdir, $git_dir) = @ENV{qw(GIANT_INBOX_DIR GIANT_GIT_DIR)}; if (defined $inboxdir) {