mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +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
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue