Corrected order of parameters to HTTPError in test_urllib2.py.
This commit is contained in:
parent
4d5232ab8a
commit
9c3895f376
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue