Permalink
Browse files

Carp 1.25 changed to incude the period like a regular die message.

For rt.cpan.org 75523
  • Loading branch information...
1 parent 9c6cb1d commit f4ce528277f848beda4ed0a8fce3db7d0ba2c06f Zefram committed with Mar 26, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 t/error.t
View
@@ -39,8 +39,9 @@ for my $test (@tests) {
eval { gravatar_url( %$args ) };
my $error = $@;
+ $error =~ s/\.\n/\n/;
$want = !$want ? ""
- : sprintf "%s at %s line %d\n", $want, $0, __LINE__ - 4;
+ : sprintf "%s at %s line %d\n", $want, $0, __LINE__ - 5;
my $name = join ", ", map { "$_ => '$args->{$_}'" } keys %$args;
is $error, $want, "gravatar_url($name)";

0 comments on commit f4ce528

Please sign in to comment.