enable warnings locally, rather than globally
[p5sagit/local-lib.git] / t / classmethod.t
index 385572a..1b27a7f 100644 (file)
@@ -1,7 +1,8 @@
 
 use strict;
 use warnings;
-use Test::More 'no_plan';
+use Test::More tests => 4;;
+
 use local::lib ();
 
 
@@ -17,6 +18,7 @@ is($c->resolve_empty_path('foo'), 'foo');
 
 {
 
+no warnings 'once';
 local *File::Spec::rel2abs = sub { shift; 'FOO'.shift; };
 is($c->resolve_relative_path('bar'),'FOObar');