Corrected order of parameters to HTTPError in test_urllib2.py.

This commit is contained in:
Jason R. Coombs 2011-12-04 08:14:18 -05:00
parent 4d5232ab8a
commit 9c3895f376
1 changed files with 1 additions and 1 deletions

View 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'