From 32f8a24249eb91809a6f0fc5a111d2209f9ea66c Mon Sep 17 00:00:00 2001 From: Chad Granum Date: Mon, 2 Sep 2024 15:57:50 -0700 Subject: [PATCH] Fix #1002 --- t/Legacy/More.t | 2 +- t/Legacy/fail-more.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/Legacy/More.t b/t/Legacy/More.t index b91234a6a..600114690 100644 --- a/t/Legacy/More.t +++ b/t/Legacy/More.t @@ -32,7 +32,7 @@ isnt( "foo", "bar", 'foo isnt bar'); is($warning, "Use of apostrophe as package separator was deprecated in Perl 5.37.9,\n" . "and will be removed in Perl 5.42.0. You should change code that uses\n" . "Test::More::isn't() to use Test::More::isnt() as a replacement" - . " at t/Legacy/More.t line 31\n", + . " at ${ \__FILE__ } line 31\n", "Got expected warning from isn::t() under use warnings"); } { diff --git a/t/Legacy/fail-more.t b/t/Legacy/fail-more.t index 6abda9f65..467fd47f4 100644 --- a/t/Legacy/fail-more.t +++ b/t/Legacy/fail-more.t @@ -152,7 +152,7 @@ OUT ERR # Use of apostrophe as package separator was deprecated in Perl 5.37.9, # and will be removed in Perl 5.42.0. You should change code that uses -# Test::More::isn't() to use Test::More::isnt() as a replacement at t/Legacy/fail-more.t line 132 +# Test::More::isn't() to use Test::More::isnt() as a replacement at ${ \__FILE__ } line 132 WARN #line 143