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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c3895f3768bc815ab3349c2e7df1b2db5cbcfff;p=thirdparty%2FPython%2Fcpython.git 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 307a86a14150..bcf5916bd596 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'