in reply to Test::NoWarnings test 'no warnings' apparently inconsistant

It's not Test::NoWarnings fault. You'll get the warning if you use warnings in the file foo.pm.

Replies are listed 'Best First'.
Re^2: Test::NoWarnings test 'no warnings' apparently inconsistant
by tachyon-II (Chaplain) on Jun 01, 2008 at 23:51 UTC

    As noted you don't set warnings in your .pm, adding $^W++ in your .t test file will switch warnings on globally and thus make it behave as you desire.