fglock has asked for the wisdom of the Perl Monks concerning the following question:

I've got a bug report from cpan-testers, because my module was tested using an old version of another module.

Makefile.PL says:

... 'PREREQ_PM' => { 'Set::Infinite' => '0.43', ...

but the tester used an older version:

t/api2.......Argument "19970902T090000Z" isn't numeric in numeric eq ( +==) at /net/sunu991/disc1/.cpanplus/5.8.0/build/Set-Infinite-0.41/blib/lib/Se +t/Infinite/_Simple.pm line 348.

How can I be sure that the tester will use the newer version (0.43) instead of the old one (0.41) ?

Replies are listed 'Best First'.
Re: Requiring a module version in "cpan-testers"
by jand (Friar) on Mar 17, 2003 at 00:29 UTC
    In your module write
    use Set::Infinite 0.43;
    instead of just
    use Set::Infinite;
    That way the tester will get the error message:
    Set::Infinite version 0.43 required--this is only version 0.41 at +-e line 1.
    That might give the tester enough hints to update the prerequisite before submitting the bug report. On the other hand, I think the tester must have already ignored the warning from MakeMaker, so it is questionable if this would help. But I think it is more likely that the actual test failure would be read than the MakeMaker output.