From: Rafael Garcia-Suarez Date: Tue, 14 Jun 2005 08:31:18 +0000 (+0000) Subject: Since the version module is use'd afterwards, use_ok needs to be X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5eb567df529229d30d1a4d7c913a67cbd444dacb;p=p5sagit%2Fp5-mst-13.2.git Since the version module is use'd afterwards, use_ok needs to be in a BEGIN block p4raw-id: //depot/perl@24831 --- diff --git a/lib/version.t b/lib/version.t index 0bb0185..bfb9c46 100644 --- a/lib/version.t +++ b/lib/version.t @@ -8,7 +8,10 @@ use Test::More tests => 183; diag "Tests with base class" unless $ENV{PERL_CORE}; -use_ok("version"); # If we made it this far, we are ok. +BEGIN { + use_ok("version", 0.30); # If we made it this far, we are ok. +} + BaseTests("version"); diag "Tests with empty derived class" unless $ENV{PERL_CORE};