Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the MooseX-Has-Sugar CPAN distribution.

Report information
The Basics
Id: 78761
Status: resolved
Priority: 0/
Queue: MooseX-Has-Sugar

People
Owner: KENTNL [...] cpan.org
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.05070420
Fixed in: 0.05070421



Subject: Uses private method of Test::Builder
t/lib/T4Values/TestCant.pm is using Test::Builder->_try, a private method. This method will disappear in a coming major release. The attached patch replaces it with an eval and localizing some variables which might be affected by an eval.
Subject: mhs.patch
diff --git a/t/lib/T4Values/TestCant.pm b/t/lib/T4Values/TestCant.pm index 25c16a2..6ff99da 100644 --- a/t/lib/T4Values/TestCant.pm +++ b/t/lib/T4Values/TestCant.pm @@ -34,7 +34,8 @@ sub can_unok($@) { my @nok = (); foreach my $method (@methods) { - $tb->_try( sub { !$proto->can($method) } ) or push @nok, $method; + local($!, $@); + eval { !$proto->can($method) } or push @nok, $method; } my $name =
Thanks. Just patched and uploaded 0.05070421