[Python-checkins] r54017 - python/branches/p3yk_no_args_on_exc/Lib/test/test_grammar.py
brett.cannon
python-checkins at python.org
Wed Feb 28 18:15:12 CET 2007
Author: brett.cannon
Date: Wed Feb 28 18:15:10 2007
New Revision: 54017
Modified:
python/branches/p3yk_no_args_on_exc/Lib/test/test_grammar.py
Log:
Make test_grammar pass for the removal of BaseException.args.
Modified: python/branches/p3yk_no_args_on_exc/Lib/test/test_grammar.py
==============================================================================
--- python/branches/p3yk_no_args_on_exc/Lib/test/test_grammar.py (original)
+++ python/branches/p3yk_no_args_on_exc/Lib/test/test_grammar.py Wed Feb 28 18:15:10 2007
@@ -492,7 +492,7 @@
try:
assert 0, "msg"
except AssertionError as e:
- self.assertEquals(e.args[0], "msg")
+ self.assertEquals(e.message, "msg")
else:
if __debug__:
self.fail("AssertionError not raised by assert 0")
More information about the Python-checkins
mailing list