diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-15 15:53:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-15 15:53:28 (GMT) |
commit | f8a4c03ede6048022f60a58d5a21b278b78a8a16 (patch) | |
tree | d9f7f1d0e827315be914b2408359067a12bcbaa2 /Lib/test/test_baseexception.py | |
parent | aca7f574b06c72c85a5e3e4b16a8a5e384a7c4a8 (diff) | |
download | cpython-f8a4c03ede6048022f60a58d5a21b278b78a8a16.zip cpython-f8a4c03ede6048022f60a58d5a21b278b78a8a16.tar.gz cpython-f8a4c03ede6048022f60a58d5a21b278b78a8a16.tar.bz2 |
bpo-30399: Get rid of trailing comma in the repr of BaseException. (#1650)
Diffstat (limited to 'Lib/test/test_baseexception.py')
-rw-r--r-- | Lib/test/test_baseexception.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_baseexception.py b/Lib/test/test_baseexception.py index 27d514f..c055ee3 100644 --- a/Lib/test/test_baseexception.py +++ b/Lib/test/test_baseexception.py @@ -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): |