mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
#17471: merge from 3.3
This commit is contained in:
commit
94f2788a85
1 changed files with 2 additions and 0 deletions
|
@ -1461,6 +1461,8 @@ class MiscTests(unittest.TestCase):
|
|||
>>> assert hasattr(err, 'headers')
|
||||
>>> err.headers
|
||||
'Content-Length: 42'
|
||||
>>> expected_errmsg = 'HTTP Error %s: %s' % (err.code, err.msg)
|
||||
>>> assert str(err) == expected_errmsg
|
||||
"""
|
||||
|
||||
class RequestTests(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue