]> Sergey Matveev's repositories - public-inbox.git/commit
t/mime: fix test to work w/o Email::MIME
authorEric Wong <e@yhbt.net>
Sun, 10 May 2020 09:41:52 +0000 (09:41 +0000)
committerEric Wong <e@yhbt.net>
Sun, 10 May 2020 19:43:44 +0000 (19:43 +0000)
commit9ab3c55b283b0cc1b4298fc95439cc1dfae14305
tree5b64b3c6648ec227d260de5e1b9a296c41cc950b
parent957dfd92aacff56d323bc1d56fb99132743e958e
t/mime: fix test to work w/o Email::MIME

Although the lazy loading changes were correct, the code
was still using PublicInbox::MIME as a fixed class.  Use
the `$cls' variable from the loop.

Favor ->subparts to ->parts, instead, too, since ->parts is
discouraged by the Email::MIME manpage and not implemented for
Eml.
t/mime.t