diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2011-12-04 13:14:18 (GMT) |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2011-12-04 13:14:18 (GMT) |
| commit | 9c3895f3768bc815ab3349c2e7df1b2db5cbcfff (patch) | |
| tree | d249916f9255d6aba6d05b6be0e8407e2a7a4388 /Lib/test/test_urllib2.py | |
| parent | 4d5232ab8af08a3e4ce5ffdb432468c7eeb79e51 (diff) | |
| download | cpython-9c3895f3768bc815ab3349c2e7df1b2db5cbcfff.zip cpython-9c3895f3768bc815ab3349c2e7df1b2db5cbcfff.tar.gz cpython-9c3895f3768bc815ab3349c2e7df1b2db5cbcfff.tar.bz2 | |
Corrected order of parameters to HTTPError in test_urllib2.py.
Diffstat (limited to 'Lib/test/test_urllib2.py')
| -rw-r--r-- | Lib/test/test_urllib2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 307a86a..bcf5916 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' |
