Skip to content

Commit 79164e3

Browse files
committed
parent: adjust for ' in names reinstatement
1 parent a4d969d commit 79164e3

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

cpan/parent/t/compile-time-file.t

+10-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use lib 't/lib';
2424

2525
{
2626
package Child3;
27-
use parent "Dummy'Outside";
27+
use if $] != 5.041_003, parent => "Dummy'Outside";
2828
}
2929

3030
my $obj = {};
@@ -39,9 +39,12 @@ isa_ok $obj, 'Dummy::InlineChild';
3939
can_ok $obj, 'exclaim';
4040
is $obj->exclaim, "I CAN FROM Dummy::InlineChild", 'Inheritance is set up correctly for inlined classes';
4141

42-
$obj = {};
43-
bless $obj, 'Child3';
44-
isa_ok $obj, 'Dummy::Outside';
45-
can_ok $obj, 'exclaim';
46-
is $obj->exclaim, "I CAN FROM Dummy::Outside", "Inheritance is set up correctly for classes inherited from via '";
47-
42+
SKIP:
43+
{
44+
skip "No ' in names in 5.041_003", 3 if $] == 5.041_003;
45+
$obj = {};
46+
bless $obj, 'Child3';
47+
isa_ok $obj, 'Dummy::Outside';
48+
can_ok $obj, 'exclaim';
49+
is $obj->exclaim, "I CAN FROM Dummy::Outside", "Inheritance is set up correctly for classes inherited from via '";
50+
}

0 commit comments

Comments
 (0)