From: Johannes Plunien Date: Sun, 26 Oct 2008 21:24:18 +0000 (+0100) Subject: using local on SIG handler X-Git-Tag: v0.08240~305 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=97240d04f2e08c0a4c1347c072e18d487ad84ecb;p=dbsrgits%2FDBIx-Class.git using local on SIG handler --- diff --git a/t/89inflate_datetime.t b/t/89inflate_datetime.t index 54cc1ad..e67e1c0 100644 --- a/t/89inflate_datetime.t +++ b/t/89inflate_datetime.t @@ -81,7 +81,7 @@ is($created_on->time_zone->name, 'America/Chicago', 'Correct timezone'); # We expect one warning SKIP: { skip "ENV{DBIC_FLOATING_TZ_OK} was set, skipping", 1 if $ENV{DBIC_FLOATING_TZ_OK}; - $SIG{__WARN__} = sub { + local $SIG{__WARN__} = sub { like( shift, qr/You're using a floating timezone, please see the documentation of DBIx::Class::InflateColumn::DateTime for an explanation/,