Skip to content

Commit

Permalink
lib/Test/More.pm - localize $@ and $! to make perl 5.10 happy.
Browse files Browse the repository at this point in the history
I dont see the point in continuing to bend over backwards for 5.10 like
this, but whatever, this seems to make the tests happy,
  • Loading branch information
demerphq committed Mar 13, 2023
1 parent a9f8567 commit 02d75fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Test/More.pm
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ sub isnt ($$;$) {
# warnings are enabled, so the user can silence the warning if they
# wish.
sub isn::t {
local $@; local $!;
if (warnings::enabled("deprecated")) {
_carp
"Use of apostrophe as package separator was deprecated in Perl 5.37.9,\n",
Expand Down

0 comments on commit 02d75fa

Please sign in to comment.