[Jifty-commit] r7499 - Template-Declare/trunk/t

Jifty commits jifty-commit at lists.jifty.org
Wed Sep 23 18:49:41 EDT 2009


Author: theory
Date: Wed Sep 23 18:49:41 2009
New Revision: 7499

Modified:
   Template-Declare/trunk/t/utf8.t
   Template-Declare/trunk/t/utils.pl

Log:
Got HTML::Lint to STFU for reals.

Modified: Template-Declare/trunk/t/utf8.t
==============================================================================
--- Template-Declare/trunk/t/utf8.t	(original)
+++ Template-Declare/trunk/t/utf8.t	Wed Sep 23 18:49:41 2009
@@ -1,4 +1,3 @@
-
 use warnings;
 use strict;
 use utf8;# 'UTF-8';
@@ -7,8 +6,6 @@
 package Wifty::UI;
 use base qw/Template::Declare/;
 use Template::Declare::Tags;
-use Carp;
-$SIG{__WARN__} = \&Carp::cluck;
 
 # 'test' in Russian
 my $str = "\x{442}\x{435}\x{441}\x{442}";

Modified: Template-Declare/trunk/t/utils.pl
==============================================================================
--- Template-Declare/trunk/t/utils.pl	(original)
+++ Template-Declare/trunk/t/utils.pl	Wed Sep 23 18:49:41 2009
@@ -13,7 +13,7 @@
 
         my $lint = HTML::Lint->new;
         do {
-            local $^W; # STFU HTML::Lint!
+            local $SIG{__WARN__} = sub {}; # STFU HTML::Lint!
             $lint->parse($html);
         };
         # Collect the errors, ignore the invalid character errors when requested.


More information about the Jifty-commit mailing list