Skip to content

Commit

Permalink
squelch diagnostics when optional modules fail to load
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaputo committed Jul 2, 2001
1 parent 4ad1135 commit 8fc2911
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/00_coverage.t
Expand Up @@ -12,7 +12,9 @@ use TestSetup;

sub load_optional_module {
my ($test_number, $module) = @_;
stderr_pause();
eval "package Test::Number_$test_number; use $module";
stderr_resume();
my $reason = $@;
$reason =~ s/[\x0a\x0d]+/ \/ /g;
$reason =~ tr[ ][ ]s;
Expand Down

0 comments on commit 8fc2911

Please sign in to comment.