summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2011-12-04 04:18:11 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2011-12-04 04:18:11 (GMT)
commit7ff21d7a3c934a90e4b9d5058034d7d2d2259f2c (patch)
tree23fb4691619c34d2c7629b33bf09ea29d7c37548 /Lib/test
parent090d8132b50ebbe6b41073bdf0369c9673cc0c27 (diff)
downloadcpython-7ff21d7a3c934a90e4b9d5058034d7d2d2259f2c.zip
cpython-7ff21d7a3c934a90e4b9d5058034d7d2d2259f2c.tar.gz
cpython-7ff21d7a3c934a90e4b9d5058034d7d2d2259f2c.tar.bz2
Pass positional arguments - HTTPError is not accepting keyword arguments. Reference #13211 and #12555.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_urllib2.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index cf6ccbc..307a86a 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -1454,7 +1454,9 @@ def test_HTTPError_interface():
Issue 13211 reveals that HTTPError didn't implement the URLError
interface even though HTTPError is a subclass of URLError.
- >>> err = urllib.error.HTTPError(msg='something bad happened', url=None, code=None, hdrs=None, fp=None)
+ >>> msg = 'something bad happened'
+ >>> url = code = hdrs = fp = None
+ >>> err = urllib.error.HTTPError(msg, url, code, hdrs, fp)
>>> assert hasattr(err, 'reason')
>>> err.reason
'something bad happened'