From 9c3895f3768bc815ab3349c2e7df1b2db5cbcfff Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 4 Dec 2011 08:14:18 -0500 Subject: [PATCH] Corrected order of parameters to HTTPError in test_urllib2.py. --- Lib/test/test_urllib2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 307a86a1415..bcf5916bd59 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'