Silence a warning in Test::Builder that was causing lib/constant.t
authorSteve Peters <steve@fisharerojo.org>
Wed, 15 Oct 2008 19:07:38 +0000 (19:07 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sat, 14 Feb 2009 23:07:08 +0000 (23:07 +0000)
to fail.

p4raw-id: //depot/perl@34491

(cherry picked from commit 417991fcde447d83d1b0e1efc675badd930b3f46)

lib/Test/Builder.pm

index 38a15d4..531dd42 100644 (file)
@@ -5,7 +5,7 @@ use 5.006;
 use strict;
 use warnings;
 
-our $VERSION = '0.82';
+our $VERSION = '0.82_01';
 $VERSION = eval $VERSION;    ## no critic (BuiltinFunctions::ProhibitStringyEval)
 
 # Make Test::Builder thread-safe for ithreads.
@@ -487,6 +487,7 @@ sub _unoverload_num {
 
     $self->_unoverload( '0+', @_ );
 
+    no warnings 'numeric';
     for my $val (@_) {
         next unless $self->_is_dualvar($$val);
         $$val = $$val + 0;