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

@ -92,7 +92,7 @@ class ExceptionClassTests(unittest.TestCase):
exc = Exception(arg)
results = ([len(exc.args), 1], [exc.args[0], arg],
[str(exc), str(arg)],
[repr(exc), exc.__class__.__name__ + repr(exc.args)])
[repr(exc), '%s(%r)' % (exc.__class__.__name__, arg)])
self.interface_test_driver(results)
def test_interface_multi_arg(self):