Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 1593
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: andy [...] petdance.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Switch to a different test website for the *.t files
Date: Tue, 01 Oct 2002 22:19:48 +0200 To: Andy Lester <andy@petdance.com>,Jeroen Latour <jlatour@www.arens.nl> From: Jeroen Latour <jlatour@calaquendi.net> Subject: Re: Testing web modules Cc: cpan-testers@perl.org X-Spam-Rating: chimpy.petdance.com 1.6.2 0/1000/N At 14:48 1-10-2002 -0500, Andy Lester wrote: Show quoted text
>Somehow it would be swell if the automated smokers out there knew not to >run tests on certain modules unless they're actually on the net. For >instance, WWW::Mechanize has to first go and fetch www.google.com, and >if it can't we know the rests of the tests are worthless.
I'd think that since we download the modules, we'd be connected. I'm also running these tests on a remote shell, so I'm pretty sure it's connected. Show quoted text
>> This is an error report generated automatically by CPANPLUS. >> Below is the error stack during 'make test': >> >> PERL_DL_NONLAZY=1 /home/local/bin/perl5.8.0 "-MExtUtils::Command::MM"
>"-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
>> t/00.load.......ok >> t/add_header....ok >> t/click.........# Failed test (t/click.t at line 14) >> Can't even fetch google at t/click.t line 14. >> # Looks like you planned 7 tests but only ran 4. >> # Looks like your test died just after 4. >> dubious >> Test returned status 255 (wstat 65280, 0xff00) >> DIED. FAILED tests 4-7 >> Failed 4/7 tests, 42.86% okay
> >... rest of the tests fail ... > >Any suggestions on this?
I've spent a while debugging, and it appears that Google redirects me to google.nl (probably because it thinks I'm in the Netherlands). $request->is_success will return false if the page was redirected. Pick a different page.
Subject: Google.com fixed in WWW::Mechanize
The WWW::Mechanize *.t files no longer use www.google.com as the base, so they're not subject to the redirections that non-US folks see.