[pypy-svn] r28804 - pypy/dist/pypy/rpython/test

arigo at codespeak.net arigo at codespeak.net
Thu Jun 15 11:47:41 CEST 2006


Author: arigo
Date: Thu Jun 15 11:47:41 2006
New Revision: 28804

Modified:
   pypy/dist/pypy/rpython/test/test_exception.py
Log:
A (disabled) test showing another annotation-rtyper issue with exceptions.


Modified: pypy/dist/pypy/rpython/test/test_exception.py
==============================================================================
--- pypy/dist/pypy/rpython/test/test_exception.py	(original)
+++ pypy/dist/pypy/rpython/test/test_exception.py	Thu Jun 15 11:47:41 2006
@@ -66,6 +66,20 @@
         res = self.interpret(f, [42])
         assert res == 42
 
+    def test_catch_incompatible_class(self):
+        import py; py.test.skip("in-progress")
+        class MyError(Exception):
+            pass
+        def h(x):
+            pass
+        def f(n):
+            try:
+                assert n < 10
+            except MyError, operr:
+                h(operr)
+        res = self.interpret(f, [7])
+        assert res is None
+
 class TestLLtype(BaseTestException, LLRtypeMixin):
     pass
 



More information about the Pypy-commit mailing list