Use Test::Requires instead of hard dep on Test::Warn
Dave Rolsky [Thu, 14 Oct 2010 19:15:40 +0000 (14:15 -0500)]
dist.ini
t/basic.t

index fc06028..e10fcca 100644 (file)
--- a/dist.ini
+++ b/dist.ini
@@ -36,6 +36,5 @@ Sub::Install = 0
 [Prereqs / TestRequires]
 Test::Exception = 0
 Test::More      = 0.88
-Test::Warn      = 0
 
 [@Git]
index 6eb35d5..9538d92 100644 (file)
--- a/t/basic.t
+++ b/t/basic.t
@@ -3,7 +3,10 @@ use warnings;
 
 use Test::Exception;
 use Test::More;
-use Test::Warn;
+
+use Test::Requires {
+    'Test::Warn' => '0.21',
+};
 
 {
     throws_ok {