From: Jason R. Coombs Date: Sun, 4 Dec 2011 13:14:18 +0000 (-0500) Subject: Corrected order of parameters to HTTPError in test_urllib2.py. X-Git-Tag: v3.3.0a1~682 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c3895f3768bc815ab3349c2e7df1b2db5cbcfff;p=python Corrected order of parameters to HTTPError in test_urllib2.py. --- diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 307a86a141..bcf5916bd5 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -1456,7 +1456,7 @@ def test_HTTPError_interface(): >>> msg = 'something bad happened' >>> url = code = hdrs = fp = None - >>> err = urllib.error.HTTPError(msg, url, code, hdrs, fp) + >>> err = urllib.error.HTTPError(url, code, msg, hdrs, fp) >>> assert hasattr(err, 'reason') >>> err.reason 'something bad happened'