mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Deprecate BaseException.message as per PEP 352.
This commit is contained in:
parent
2ebc4d8054
commit
229cee2d3d
7 changed files with 147 additions and 68 deletions
|
@ -137,7 +137,7 @@ class TestDefaultDict(unittest.TestCase):
|
|||
try:
|
||||
d1[(1,)]
|
||||
except KeyError, err:
|
||||
self.assertEqual(err.message, (1,))
|
||||
self.assertEqual(err.args[0], (1,))
|
||||
else:
|
||||
self.fail("expected KeyError")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue