From: Karen Etheridge Date: Sun, 17 May 2020 23:26:30 +0000 (-0700) Subject: fix test failure with JSON::XS 2.x (RT#132578) X-Git-Tag: v1.004002~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FJSON-MaybeXS.git;a=commitdiff_plain;h=bca3f2efab473fb7b051661090eff0f6f80ba9be fix test failure with JSON::XS 2.x (RT#132578) --- diff --git a/Changes b/Changes index b801f2d..b989780 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for JSON-MaybeXS + - fix test that fails when JSON::XS is installed, but below version 3.0 + (RT#132578) + 1.004001 - 2020-05-01 - document when is_bool became available - now favouring Cpanel::JSON::XS over JSON::XS in more situations (the former diff --git a/t/preload_xs.t b/t/preload_xs.t index 7270312..539b524 100644 --- a/t/preload_xs.t +++ b/t/preload_xs.t @@ -1,7 +1,7 @@ use strict; use warnings; -use if !eval { require JSON::XS; 1; }, 'Test::More', skip_all => 'No JSON::XS'; +use if !eval { require JSON::XS; JSON::XS->VERSION(3.0); 1; }, 'Test::More', skip_all => 'No JSON::XS'; use Test::More 0.88; use JSON::MaybeXS;