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")
participants (1)
-
brett.cannon