Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

properly silence warnings

  • Loading branch information...
commit 594f5fcfa79fb4860e1594296d384c97a8df5b3a 1 parent d51a509
Moritz Lenz authored

Showing 2 changed files with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. +4 1 t/complete.t
  2. +2 0  t/syntax.t
5 t/complete.t
@@ -10,7 +10,10 @@ $App::Mowyw::config{default}{include} = 't/complete/includes/';
10 10 $App::Mowyw::config{default}{source} = 't/complete/source/';
11 11 $App::Mowyw::config{default}{online} = 't/complete/online/';
12 12 $App::Mowyw::config{default}{postfix} = '';
13   -$App::Mowyw::Quiet = 1;
  13 +{
  14 + no warnings 'once';
  15 + $App::Mowyw::Quiet = 1;
  16 +}
14 17
15 18 ok eval {
16 19 parse_all_in_dir('t/complete/source/');
2  t/syntax.t
@@ -4,11 +4,13 @@ use warnings;
4 4
5 5 BEGIN { use_ok('App::Mowyw', 'parse_str'); };
6 6
  7 +no warnings 'once';
7 8 $App::Mowyw::Quiet = 1;
8 9
9 10 {
10 11 # Test without Vim::TextColor first
11 12 local @INC = ();
  13 + local $App::Mowyw::config{quiet} = 1;
12 14 my $ps = parse_str('[% syntax foobar %]<argl>[% endsyntax %]', {});
13 15
14 16 ok $ps !~ m/<argl>/, 'Syntax hilighting at least escapes';

0 comments on commit 594f5fc

Please sign in to comment.
Something went wrong with that request. Please try again.