Class-Std - use_ok() produces warnings with Class::Std

Posted on Mon Sep 19 09:51:52 2005 by whitney
use_ok() produces warnings with Class::Std
When testing a package that makes use of Class::Std with the Test::More's use_ok() function I get warnings like this:

Too late to run CHECK block at /usr/lib/perl5/site_perl/5.8.6/Class/Std.pm line 359.

example package:

package Foo; use Class::Std; { my %name_of : ATTR; } 1;


example test (foo.t):

use Test::More tests => 1; use_ok('Foo');


$ perl t/foo.t

1..1 Too late to run CHECK block at /usr/lib/perl5/site_perl/5.8.6/Class/Std.pm line 359. ok 1 - use Foo;

Anyone know what's causing this?
Direct Responses: 1333 | Write a response