Skip to content

Commit a357bb9

Browse files
Max Maischeinjkeenan
authored andcommitted
Update parent to CPAN version 2.39
From Changes (0.239 2022-12-06): Harden against changes to require error messages. The '@inc contains' may change in a future release of perl, this hardens the test to not be sensitive to the exact words chosen. See: #20547
1 parent 7606224 commit a357bb9

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Porting/Maintainers.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ package Maintainers;
896896
},
897897

898898
'parent' => {
899-
'DISTRIBUTION' => 'CORION/parent-0.238.tar.gz',
899+
'DISTRIBUTION' => 'CORION/parent-0.239.tar.gz',
900900
'FILES' => q[cpan/parent],
901901
'EXCLUDED' => [
902902
qr{^xt}

cpan/parent/lib/parent.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package parent;
22
use strict;
33

4-
our $VERSION = '0.238';
4+
our $VERSION = '0.239';
55

66
sub import {
77
my $class = shift;

cpan/parent/t/parent.t

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ is( $Eval1::VERSION, '1.01' );
5656

5757
is( $Eval2::VERSION, '1.02' );
5858

59-
my $expected= q{/^Can't locate reallyReAlLyNotexists.pm in \@INC \(\@INC contains:/};
60-
$expected= q{/^Can't locate reallyReAlLyNotexists.pm in \@INC \(you may need to install the reallyReAlLyNotexists module\) \(\@INC contains:/}
59+
my $expected= q{/^Can't locate reallyReAlLyNotexists.pm in \@INC \(\@INC[\w ]+:/};
60+
$expected= q{/^Can't locate reallyReAlLyNotexists.pm in \@INC \(you may need to install the reallyReAlLyNotexists module\) \(\@INC[\w ]+:/}
6161
if 5.017005 <= $];
6262

6363
eval q{use parent 'reallyReAlLyNotexists'};
@@ -74,4 +74,3 @@ like( $@, $expected, ' still failing on 2nd load');
7474
use parent -norequire, 'Has::Version_0';
7575
::is( $Has::Version_0::VERSION, 0, '$VERSION==0 preserved' );
7676
}
77-

0 commit comments

Comments
 (0)