Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 68356
Status: resolved
Priority: 0/
Queue: Moose

People
Owner: Nobody in particular
Requestors: TODDR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.0007
Fixed in: (no value)



Subject: test suite emites perl 5.14 deprecation warnings.
Use of qw(...) as parentheses is deprecated at t/immutable/buildargs.t line 31.
This patch should resolve things.
Subject: patch.txt
commit 3e5b5429657cc76f603d3209cefcbe45ec2f1870 Author: Todd Rinaldo <toddr@cpanel.net> Date: Sat May 21 01:29:59 2011 -0500 RT 68356 - Fix perl 5.14 dep warnings from test suite diff --git a/t/immutable/buildargs.t b/t/immutable/buildargs.t index 283ed5c..ee9c08c 100644 --- a/t/immutable/buildargs.t +++ b/t/immutable/buildargs.t @@ -28,7 +28,7 @@ use Test::More; __PACKAGE__->meta->make_immutable; } -foreach my $class qw(Foo Bar) { +foreach my $class (qw(Foo Bar)) { is( $class->new->bar, undef, "no args" ); is( $class->new( bar => 42 )->bar, 42, "normal args" ); is( $class->new( 37 )->bar, 37, "single arg" );
This has actually already been fixed in git, but thanks.