[pypy-svn] r35607 - pypy/dist/pypy/objspace/std/test
fijal at codespeak.net
fijal at codespeak.net
Mon Dec 11 23:47:06 CET 2006
Author: fijal
Date: Mon Dec 11 23:47:05 2006
New Revision: 35607
Modified:
pypy/dist/pypy/objspace/std/test/test_proxy_internals.py
Log:
Added a test
Modified: pypy/dist/pypy/objspace/std/test/test_proxy_internals.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_proxy_internals.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_proxy_internals.py Mon Dec 11 23:47:05 2006
@@ -31,6 +31,18 @@
tb = self.get_proxy(e[2])
assert tb.tb_frame is e[2].tb_frame
+
+ def test_traceback_catch(self):
+ try:
+ try:
+ 1/0
+ except ZeroDivisionError, e:
+ ex = self.get_proxy(e)
+ raise ex
+ except ZeroDivisionError:
+ pass
+ else:
+ raise AssertionError("Did not raise")
def test_traceback_reraise(self):
#skip("Not implemented yet")
More information about the Pypy-commit
mailing list