Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c3895f

Browse files
committed
Corrected order of parameters to HTTPError in test_urllib2.py.
1 parent 4d5232a commit 9c3895f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_urllib2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ def test_HTTPError_interface():
14561456
14571457
>>> msg = 'something bad happened'
14581458
>>> url = code = hdrs = fp = None
1459-
>>> err = urllib.error.HTTPError(msg, url, code, hdrs, fp)
1459+
>>> err = urllib.error.HTTPError(url, code, msg, hdrs, fp)
14601460
>>> assert hasattr(err, 'reason')
14611461
>>> err.reason
14621462
'something bad happened'

0 commit comments

Comments
 (0)