diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-03-21 22:50:04 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-03-21 22:50:04 +0000 |
commit | 11dbfd41957b3602d3adcbe24108b508c4a71356 (patch) | |
tree | 13a432c8d79045b3aea5a1dab7c1f80d379c1f94 /Lib/test/test_httplib.py | |
parent | f61ff6d792c5490d5700651800a9ec733297acac (diff) | |
download | cpython-git-11dbfd41957b3602d3adcbe24108b508c4a71356.tar.gz |
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.
........
Diffstat (limited to 'Lib/test/test_httplib.py')
-rw-r--r-- | Lib/test/test_httplib.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index 705ceecb3d..84e1f80fce 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -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() |