about summary refs log tree commit homepage
path: root/t/msgtime.t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-04-21 21:16:12 +0000
committerEric Wong <e@yhbt.net>2020-04-22 18:22:40 +0000
commit62d1a4da996bd9a664be954f71f78fe052f9df16 (patch)
tree3fc45fcaccfc149b13fc6b7688017cb176852f25 /t/msgtime.t
parent4bd22e9528484c5d964ecba277fd6a7d5e023461 (diff)
downloadpublic-inbox-62d1a4da996bd9a664be954f71f78fe052f9df16.tar.gz
t/*.t: use Email::MIME->create over PublicInbox::MIME->create
PublicInbox::MIME only supports ->new, and is only different
from Email::MIME for old versions of Email::MIME.  In the
future, PublicInbox::MIME may not be a subclass of Email::MIME
at all.
Diffstat (limited to 't/msgtime.t')
-rw-r--r--t/msgtime.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/msgtime.t b/t/msgtime.t
index 3f09fb4e..058f3886 100644
--- a/t/msgtime.t
+++ b/t/msgtime.t
@@ -6,12 +6,13 @@ use Test::More;
 use PublicInbox::MIME;
 use PublicInbox::MsgTime;
 use PublicInbox::TestCommon;
+require_mods(qw(Email::MIME));
 
 our $received_date = 'Mon, 22 Jan 2007 13:16:24 -0500';
 sub datestamp ($) {
         my ($date) = @_;
         local $SIG{__WARN__} = sub {};  # Suppress warnings
-        my $mime = PublicInbox::MIME->create(
+        my $mime = Email::MIME->create(
                 header => [
                         From => 'a@example.com',
                         To => 'b@example.com',
@@ -34,7 +35,7 @@ EOF
 sub timestamp ($) {
         my ($received) = @_;
         local $SIG{__WARN__} = sub {};  # Suppress warnings
-        my $mime = PublicInbox::MIME->create(
+        my $mime = Email::MIME->create(
                 header => [
                         From => 'a@example.com',
                         To => 'b@example.com',