Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix checking for URI::Escape dependency in tests
nine++ for the tip of how to do this with a current Rakudo.
  • Loading branch information
Paul Cochrane committed Dec 30, 2015
1 parent b253dbf commit 17fdcb5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions t/pod-htmlify.t
Expand Up @@ -4,10 +4,13 @@ use lib 'lib';
use File::Temp;

BEGIN {
unless (try require URI::Escape) {
warn "URI::Escape required to run these tests";
plan 0;
exit;
require URI::Escape;
CATCH {
when X::CompUnit::UnsatisfiedDependency {
warn "URI::Escape required to run these tests";
plan 0;
exit;
}
}
}

Expand Down

0 comments on commit 17fdcb5

Please sign in to comment.