On Wed, 5 Feb 2003 00:40:01 -0600 (CST), [EMAIL PROTECTED] wrote: >> p.s. You also need to apply the following minor patch >> >> --- t/01load.t.orig 2003-02-04 22:49:35.000000000 -0500 >> +++ t/01load.t 2003-02-04 22:49:48.000000000 -0500 >> @@ -14,7 +14,4 @@ BEGIN >> >> plan tests => 1; >> >> -BEGIN >> -{ >> - use_ok('DateTime::TimeZone'); >> -} >> +use_ok('DateTime::TimeZone'); >> >> since you cannot have the use_ok() wrapped in a BEGIN (since Test::More won't be >> loaded yet). > >No, Test::More is loaded by the "use Test::More" line. This is equivalent >to: > > BEGIN { require Test::More; Test::More->import; }
But use_ok doesn't work right since the 'plan tests => 1' hasn't been done yet. There seems to be a bug in Test::More here...it should have given a: "You tried to run a test without a plan! Gotta have a plan."