Skip to content

Commit 17fdcb5

Browse files
committed
Fix checking for URI::Escape dependency in tests
nine++ for the tip of how to do this with a current Rakudo.
1 parent b253dbf commit 17fdcb5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

t/pod-htmlify.t

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ use lib 'lib';
44
use File::Temp;
55

66
BEGIN {
7-
unless (try require URI::Escape) {
8-
warn "URI::Escape required to run these tests";
9-
plan 0;
10-
exit;
7+
require URI::Escape;
8+
CATCH {
9+
when X::CompUnit::UnsatisfiedDependency {
10+
warn "URI::Escape required to run these tests";
11+
plan 0;
12+
exit;
13+
}
1114
}
1215
}
1316

0 commit comments

Comments
 (0)