[pypy-svn] r59485 - pypy/trunk/pypy/interpreter/test
fijal at codespeak.net
fijal at codespeak.net
Tue Oct 28 15:45:00 CET 2008
Author: fijal
Date: Tue Oct 28 15:44:59 2008
New Revision: 59485
Modified:
pypy/trunk/pypy/interpreter/test/test_compiler.py
Log:
Showcase our level of 2.5 support
Modified: pypy/trunk/pypy/interpreter/test/test_compiler.py
==============================================================================
--- pypy/trunk/pypy/interpreter/test/test_compiler.py (original)
+++ pypy/trunk/pypy/interpreter/test/test_compiler.py Tue Oct 28 15:44:59 2008
@@ -141,6 +141,19 @@
ex = e.value
assert ex.match(self.space, self.space.w_SyntaxError)
+ def test_try_except_finally(self):
+ py.test.skip("FAILS!")
+ s = py.code.Source("""
+ def f():
+ try:
+ 1/0
+ except ZeroDivisionError:
+ pass
+ finally:
+ return 3
+ """)
+ self.compiler.compile(str(s), '', 'exec', 0)
+
def test_toplevel_docstring(self):
space = self.space
code = self.compiler.compile('"spam"; "bar"; x=5', '<hello>', 'exec', 0)
More information about the Pypy-commit
mailing list