summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-10-28 20:25:09 (GMT)
committerGeorg Brandl <georg@python.org>2006-10-28 20:25:09 (GMT)
commitb21e0815bf5a6d6a3e795354e3c9a9afde8f24f7 (patch)
treec0fa8594a1a56a4370fc1ccf0e0082a4aadf8c6f /Lib/test
parent35692a0c0e0875c72c86aa4f027f3893af16018a (diff)
downloadcpython-b21e0815bf5a6d6a3e795354e3c9a9afde8f24f7.zip
cpython-b21e0815bf5a6d6a3e795354e3c9a9afde8f24f7.tar.gz
cpython-b21e0815bf5a6d6a3e795354e3c9a9afde8f24f7.tar.bz2
make test_grammar pass with python -O
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_grammar.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py
index 584bbaf..7d2ba37 100644
--- a/Lib/test/test_grammar.py
+++ b/Lib/test/test_grammar.py
@@ -544,8 +544,10 @@ hello world
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