gentoo-ebuilds/dev-perl/Exception-Base/files/Exception-Base-0.2501-perl-5.38.patch
Sam James 9392600475
dev-perl/Exception-Base: fix tests w/ perl-5.38
Closes: https://bugs.gentoo.org/928246
Signed-off-by: Sam James <sam@gentoo.org>
2024-05-01 09:23:15 +01:00

15 lines
519 B
Diff

https://bugs.gentoo.org/928246
https://github.com/dex4er/perl-Exception-Base/issues/5
--- a/t/tlib/Exception/BaseTest.pm
+++ b/t/tlib/Exception/BaseTest.pm
@@ -569,7 +569,8 @@
$self->assert_matches(qr/String at /, $obj);
# smart matching for Perl 5.10
- if ($] >= 5.010) {
+ # Deprecation warning added in 5.37.10
+ if ($] >= 5.010 && $] < 5.037010) {
no if $] >= 5.018, warnings => 'experimental::smartmatch';
eval q{
$self->assert_num_equals(1, 'String' ~~ $obj);