[issue3583] test_urllibnet.test_bad_address() fails when using OpenDNS

2013-01-11 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue3583] test_urllibnet.test_bad_address() fails when using OpenDNS

2013-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset acce13a6e728 by Brett Cannon in branch 'default': Issue #3583: mention that testing whether a bad address not triggering http://hg.python.org/cpython/rev/acce13a6e728 -- nosy: +python-dev ___ Python track

[issue3583] test_urllibnet.test_bad_address() fails when using OpenDNS

2010-12-26 Thread R. David Murray
R. David Murray added the comment: I think the best we can do here is add a message explaining that the error may be due to a broken DNS server (one with a wildcard dns record for all non-existent top level domains). However, assertRaises, even in context manager form, doesn't take a msg arg

[issue3583] test_urllibnet.test_bad_address() fails when using OpenDNS

2009-05-16 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +ajaksu2 versions: +Python 3.1 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue3583] test_urllibnet.test_bad_address() fails when using OpenDNS

2009-05-14 Thread Ezio Melotti
Ezio Melotti added the comment: I got a similar problem but here the ISP returned an error/search page and a "302 Found". test_urllibnet.test_bad_address() failed with "AssertionError: IOError not raised by urlopen" >>> import http.client >>> conn = http.client.HTTPConnection("www.somerandominv

[issue3583] test_urllibnet.test_bad_address() fails when using OpenDNS

2009-02-12 Thread Daniel Diniz
Changes by Daniel Diniz : -- components: +Tests -Library (Lib) nosy: +orsenthil stage: -> test needed versions: +Python 3.0 ___ Python tracker ___ ___

[issue3583] test_urllibnet.test_bad_address() fails when using OpenDNS

2008-08-18 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Le lundi 18 août 2008 à 17:19 +, Brett Cannon a écrit : > That's also a possibility. > > Out of curiosity, what HTTP response should be received? There shouldn't be an HTTP response at all. If DNS lookup fails, connecting to the server s

[issue3583] test_urllibnet.test_bad_address() fails when using OpenDNS

2008-08-18 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Mon, Aug 18, 2008 at 3:52 AM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > > Antoine Pitrou <[EMAIL PROTECTED]> added the comment: > > Are many people using OpenDNS? Is there a way to detect that OpenDNS is > being used and trigger a separate

[issue3583] test_urllibnet.test_bad_address() fails when using OpenDNS

2008-08-18 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Are many people using OpenDNS? Is there a way to detect that OpenDNS is being used and trigger a separate path in the test? I say that because returning a 404 when the domain lookup has failed is wrong. Perhaps the test should check for a 404

[issue3583] test_urllibnet.test_bad_address() fails when using OpenDNS

2008-08-17 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: OpenDNS has a "feature" where if you enter an address that doesn't exist, you get a 404 and a Google-looking search page. Problem is that urllib.urlopen() does not raise any exception on a 404. Probably should just change the test such that i