Skip to content

Commit

Permalink
Small cleanup to TB2::NoWarnings
Browse files Browse the repository at this point in the history
* Remove a debugger flag that crept in
* Make a function into a method
  • Loading branch information
schwern committed Aug 21, 2012
1 parent e9f7e96 commit 7b411f8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/TB2/lib/TB2/NoWarnings.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -89,7 +87,7 @@ plan is already set, but it doesn't.
warnings => $warnings
]);

remove_warning_handler();
$self->remove_warning_handler();

return;
}
Expand Down

0 comments on commit 7b411f8

Please sign in to comment.