mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Merged revisions 78417 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78417 | dirkjan.ochtman | 2010-02-23 22:49:00 -0600 (Tue, 23 Feb 2010) | 1 line Issue #7427: improve the representation of httplib.BadStatusLine exceptions. ........
This commit is contained in:
parent
f61ff6d792
commit
11dbfd4195
2 changed files with 6 additions and 0 deletions
|
@ -106,6 +106,10 @@ class BasicTest(TestCase):
|
|||
resp = client.HTTPResponse(sock)
|
||||
self.assertRaises(client.BadStatusLine, resp.begin)
|
||||
|
||||
def test_bad_status_repr(self):
|
||||
exc = client.BadStatusLine('')
|
||||
self.assertEquals(repr(exc), '''BadStatusLine("\'\'",)''')
|
||||
|
||||
def test_partial_reads(self):
|
||||
# if we have a lenght, the system knows when to close itself
|
||||
# same behaviour than when we read the whole thing with read()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue