Permalink
Browse files

Small cleanup to TB2::NoWarnings

* Remove a debugger flag that crept in
* Make a function into a method
  • Loading branch information...
1 parent e9f7e96 commit 7b411f8631cc2a016b7322266229702c11428725 @schwern schwern committed Aug 21, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 examples/TB2/lib/TB2/NoWarnings.pm
@@ -79,8 +79,6 @@ plan is already set, but it doesn't.
sub handle_test_end {
my $self = shift;
- $DB::single = 1;
-
my $warnings = $self->warnings_seen;
$self->builder
@@ -89,7 +87,7 @@ plan is already set, but it doesn't.
warnings => $warnings
]);
- remove_warning_handler();
+ $self->remove_warning_handler();
return;
}

0 comments on commit 7b411f8

Please sign in to comment.