We reach into the WwwListing package directly to retrieve
that JSON encoder/decoder object, and we can't rely on `use'
since WwwListing loading may fail if Plack is missing.
---
*sigh* v1 was wrong :x
t/www_listing.t | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/t/www_listing.t b/t/www_listing.t
index 39c19577..9230329c 100644
--- a/t/www_listing.t
+++ b/t/www_listing.t
@@ -9,8 +9,10 @@ use PublicInbox::TestCommon;
require_mods(qw(URI::Escape Plack::Builder Digest::SHA
IO::Compress::Gzip IO::Uncompress::Gunzip HTTP::Tiny));
require PublicInbox::WwwListing;
-my $json = $PublicInbox::WwwListing::json or
- plan skip_all => "JSON module missing";
+my $json = do {
+ no warnings 'once';
+ $PublicInbox::WwwListing::json;
+} or plan skip_all => "JSON module missing";
use_ok 'PublicInbox::Git';
--
unsubscribe: one-click, see List-Unsubscribe header
archive: https://public-inbox.org/meta/