[New-bugs-announce] [issue3583] test_urllibnet.test_bad_address() fails when using OpenDNS

Brett Cannon report at bugs.python.org
Sun Aug 17 23:21:01 CEST 2008


New submission from Brett Cannon <brett at python.org>:

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 if no exception is
raised, check if a 404 was returned and still consider the test passed.

----------
components: Library (Lib)
messages: 71292
nosy: brett.cannon
priority: normal
severity: normal
status: open
title: test_urllibnet.test_bad_address() fails when using OpenDNS
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3583>
_______________________________________


More information about the New-bugs-announce mailing list