Skip to content

Commit 9aa658a

Browse files
haargoalders
authored andcommitted
drop Test::Warn prereq
Replace with Test::Warnings.
1 parent b498cac commit 9aa658a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/select.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use warnings;
44
use strict;
55
use Test::More;
6-
use Test::Warn qw( warning_like );
6+
use Test::Warnings qw(warning :no_end_test);
77
use URI::file ();
88

99
BEGIN {
@@ -83,7 +83,7 @@ is($return, $sendsingle, "single->single value is '$return'");
8383
# test return value from $mech->select
8484
is($rv, 1, 'return 1 after successful select');
8585

86-
warning_like { $rv = $mech->select( 'missing_list', 1 ) } qr/not found/,
86+
like warning { $rv = $mech->select( 'missing_list', 1 ) }, qr/not found/,
8787
'warning when field is not found';
8888
is( $rv, undef, 'return undef after failed select' );
8989

0 commit comments

Comments
 (0)