laziness, impatience, and hubris | |
PerlMonks |
WWW::Mechanize version differences with confessby Ineffectual (Scribe) |
on Aug 03, 2009 at 23:18 UTC ( [id://785591]=perlquestion: print w/replies, xml ) | Need Help?? |
Ineffectual has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Monks,
I've recently upgraded from WWW::Mechanize 1.30 to 1.58 (current version). However, this is causing one of my tests to fail because there's some difference with how the new version responds to confess. I was hoping someone more familiar with WWW::Mechanize can point out to me if there's a way to make the new version act like the old version used to or how to upgrade my test to make the version of WWW::Mechanize not matter.
Test code:
My perl module that catches the empty search entry looks like: The page rendering is complicated (of course) but works just fine in a web browser. The confess is to make sure that the chide that got called (likely in the middle of another perl module) prevents that perl module from continuing to process. In version 1.30 this works fine, but in 1.58 it passes the confess out to my test and my test confesses as well! This appears to be a WWW::Mechanize difference because I installed 1.30 from the CPAN archive and the test works fine again without any further changes. Thanks for any help!
Back to
Seekers of Perl Wisdom
|
|