Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix #2: add :no_end_test tag

  • Loading branch information...
commit 7f7661b8a413eee7d7dd267221d058a6d54f3db3 1 parent 1d39239
Stephen Thirlwall authored
Showing with 5 additions and 1 deletion.
  1. +4 −0 lib/Test/NoWarnings.pm
  2. +1 −1  t/07_done_testing.t
4 lib/Test/NoWarnings.pm
View
@@ -35,6 +35,10 @@ sub import {
@_ = grep { $_ ne ':early' } @_;
$EARLY = 1;
}
+ if ( grep { $_ eq ':no_end_test' } @_ ) {
+ @_ = grep { $_ ne ':no_end_test' } @_;
+ $do_end_test = 0;
+ }
goto &Exporter::import;
}
2  t/07_done_testing.t
View
@@ -2,7 +2,7 @@
use strict;
use Test::More;
-use Test::NoWarnings qw( had_no_warnings );
+use Test::NoWarnings qw( had_no_warnings :no_end_test );
pass('Just testing');
Please sign in to comment.
Something went wrong with that request. Please try again.