[Python-checkins] r52500 - python/trunk/Lib/test/test_grammar.py

georg.brandl python-checkins at python.org
Sat Oct 28 22:25:10 CEST 2006


Author: georg.brandl
Date: Sat Oct 28 22:25:09 2006
New Revision: 52500
Modified:
 python/trunk/Lib/test/test_grammar.py
Log:
make test_grammar pass with python -O
Modified: python/trunk/Lib/test/test_grammar.py
==============================================================================
--- python/trunk/Lib/test/test_grammar.py	(original)
+++ python/trunk/Lib/test/test_grammar.py	Sat Oct 28 22:25:09 2006
@@ -544,8 +544,10 @@
 assert 0, "msg"
 except AssertionError, e:
 self.assertEquals(e.args[0], "msg")
- else:
- self.fail("AssertionError not raised by assert 0")
+ # we can not expect an assertion error to be raised
+ # if the tests are run in an optimized python
+ #else:
+ # self.fail("AssertionError not raised by assert 0")
 
 ### compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | funcdef | classdef
 # Tested below


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /