This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients Steve Harris, martin.panter, r.david.murray, raniere, vstinner
Date 2015-12-07.06:25:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449469516.15.0.823268411805.issue23788@psf.upfronthosting.co.za>
In-reply-to
Content
Steve and/or Raniere: I suspect this is the same problem as mentioned in the giant comment, Issue 17564. In other words, it is probably your ISP or DNS which is broken, not Python.

However, rather than expecting everyone to automatically read the giant wall of comment in the source code, perhaps we could improve the failure message:

with self.assertRaises(OSError,
        msg="Perhaps your ISP hijacked the DNS request; "
        "see the source code comments"):
    # Giant comment
    urllib.request.urlopen(...)

Then the failure would look like this:

AssertionError: OSError not raised : Perhaps your ISP hijacked the DNS request; see the source code comments
History
Date User Action Args
2015-12-07 06:25:16martin.pantersetrecipients: + martin.panter, vstinner, r.david.murray, raniere, Steve Harris
2015-12-07 06:25:16martin.pantersetmessageid: <1449469516.15.0.823268411805.issue23788@psf.upfronthosting.co.za>
2015-12-07 06:25:16martin.panterlinkissue23788 messages
2015-12-07 06:25:15martin.pantercreate