From: Peter Rabbitson Date: Thu, 18 Jun 2009 12:05:42 +0000 (+0000) Subject: wtf X-Git-Tag: v0.08108~78 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=87974600d4fe8f7d4140a75ea97443a3c5cda4d5;p=dbsrgits%2FDBIx-Class.git wtf --- diff --git a/t/93storage_replication.t b/t/93storage_replication.t index b85da4a..a2463e4 100644 --- a/t/93storage_replication.t +++ b/t/93storage_replication.t @@ -361,10 +361,7 @@ is $artist1->name, 'Ozric Tentacles' ## Check that master_read_weight is honored { - no warnings 'once'; - - # turn off redefined warning - local $SIG{__WARN__} = sub {}; + no warnings qw/once redefine/; local *DBIx::Class::Storage::DBI::Replicated::Balancer::Random::_random_number =