diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-05-05 01:34:02 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-05-05 01:34:02 (GMT) |
commit | 229cee2d3dc2d962d5cbda96f2411c5cec0a9293 (patch) | |
tree | 3a474da4aafdfa18c6b6f8848c4792e70e5b9ad0 /Lib/test/test_defaultdict.py | |
parent | 2ebc4d8054615e9e5ad8ef6e35aad6ac419233c8 (diff) | |
download | cpython-229cee2d3dc2d962d5cbda96f2411c5cec0a9293.zip cpython-229cee2d3dc2d962d5cbda96f2411c5cec0a9293.tar.gz cpython-229cee2d3dc2d962d5cbda96f2411c5cec0a9293.tar.bz2 |
Deprecate BaseException.message as per PEP 352.
Diffstat (limited to 'Lib/test/test_defaultdict.py')
-rw-r--r-- | Lib/test/test_defaultdict.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_defaultdict.py b/Lib/test/test_defaultdict.py index 08be005..6108840 100644 --- a/Lib/test/test_defaultdict.py +++ b/Lib/test/test_defaultdict.py @@ -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") |