mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
bpo-30399: Get rid of trailing comma in the repr of BaseException. (#1650)
This commit is contained in:
parent
aca7f574b0
commit
f8a4c03ede
5 changed files with 18 additions and 12 deletions
|
@ -497,7 +497,7 @@ class BasicTest(TestCase):
|
|||
|
||||
def test_bad_status_repr(self):
|
||||
exc = client.BadStatusLine('')
|
||||
self.assertEqual(repr(exc), '''BadStatusLine("\'\'",)''')
|
||||
self.assertEqual(repr(exc), '''BadStatusLine("''")''')
|
||||
|
||||
def test_partial_reads(self):
|
||||
# if we have Content-Length, HTTPResponse knows when to close itself,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue