bpo-30399: Get rid of trailing comma in the repr of BaseException. (#1650)

This commit is contained in:
Serhiy Storchaka 2017-11-15 17:53:28 +02:00 committed by GitHub
parent aca7f574b0
commit f8a4c03ede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 12 deletions

View file

@ -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,