Subject: | t/10basic.t throws a warning and isn't testing what it should? |
I think this is the fix.
diff --git a/t/10basic.t b/t/10basic.t
index 5e2f483a7..37957cde8 100644
--- a/t/10basic.t
+++ b/t/10basic.t
@@ -13,13 +13,10 @@ plan tests => 2;
use_ok( 'Carp::Clan', 'Use Carp::Clan' );
eval {
- sub {
Carp::Clan->import(qw(^Carp\\b));
- return 1;
- },
};
-ok(!$@, 'No errors importing');
+is($@, '', 'No errors importing');
__END__