--- Package-DeprecationManager-0.06/t/basic.t.orig 2010-10-15 09:09:36.747221411 +0100 +++ Package-DeprecationManager-0.06/t/basic.t 2010-10-15 09:08:35.411161054 +0100 @@ -4,9 +4,10 @@ use Test::Exception; use Test::More; -use Test::Requires { - 'Test::Warn' => '0.21', -}; +BEGIN { + eval "use Test::Warn 0.21;"; + plan skip_all => "Test::Warn 0.21 is required for this test" if $@; +} plan tests => 22;