]> granicus.if.org Git - python/commitdiff
Corrected order of parameters to HTTPError in test_urllib2.py.
authorJason R. Coombs <jaraco@jaraco.com>
Sun, 4 Dec 2011 13:14:18 +0000 (08:14 -0500)
committerJason R. Coombs <jaraco@jaraco.com>
Sun, 4 Dec 2011 13:14:18 +0000 (08:14 -0500)
Lib/test/test_urllib2.py

index 307a86a14150207e9a397df1c86484da00f4af24..bcf5916bd5964f44838801e69b336050ed76581e 100644 (file)
@@ -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'