Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

properly silence warnings

  • Loading branch information...
commit 594f5fcfa79fb4860e1594296d384c97a8df5b3a 1 parent d51a509
@moritz authored
Showing with 6 additions and 1 deletion.
  1. +4 −1 t/complete.t
  2. +2 −0  t/syntax.t
View
5 t/complete.t
@@ -10,7 +10,10 @@ $App::Mowyw::config{default}{include} = 't/complete/includes/';
$App::Mowyw::config{default}{source} = 't/complete/source/';
$App::Mowyw::config{default}{online} = 't/complete/online/';
$App::Mowyw::config{default}{postfix} = '';
-$App::Mowyw::Quiet = 1;
+{
+ no warnings 'once';
+ $App::Mowyw::Quiet = 1;
+}
ok eval {
parse_all_in_dir('t/complete/source/');
View
2  t/syntax.t
@@ -4,11 +4,13 @@ use warnings;
BEGIN { use_ok('App::Mowyw', 'parse_str'); };
+no warnings 'once';
$App::Mowyw::Quiet = 1;
{
# Test without Vim::TextColor first
local @INC = ();
+ local $App::Mowyw::config{quiet} = 1;
my $ps = parse_str('[% syntax foobar %]<argl>[% endsyntax %]', {});
ok $ps !~ m/<argl>/, 'Syntax hilighting at least escapes';
Please sign in to comment.
Something went wrong with that request. Please try again.