Index: Lib/test/test_grammar.py =================================================================== --- Lib/test/test_grammar.py (revision 80100) +++ Lib/test/test_grammar.py (working copy) @@ -500,7 +500,25 @@ else: if __debug__: self.fail("AssertionError not raised by assert 0") + + try: + assert False + except AssertionError as e: + self.assertEqual(str(e), "") + else: + if __debug__: + self.fail("AssertionError not raised by 'assert False'") + + try: + assert True + except AssertionError as e: + self.fail("'assert True' should not have raised an AssertionError") + try: + assert True, 'this should always pass' + except AssertionError as e: + self.fail("'assert True, msg' should not have raised an AssertionError") + ### compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | funcdef | classdef # Tested below