[pypy-svn] r31141 - pypy/dist/pypy/translator/backendopt/test

arigo at codespeak.net arigo at codespeak.net
Mon Aug 7 19:43:47 CEST 2006


Author: arigo
Date: Mon Aug  7 19:43:46 2006
New Revision: 31141

Modified:
   pypy/dist/pypy/translator/backendopt/test/test_inline.py
Log:
Change the test to be what I guess was its intended meaning.


Modified: pypy/dist/pypy/translator/backendopt/test/test_inline.py
==============================================================================
--- pypy/dist/pypy/translator/backendopt/test/test_inline.py	(original)
+++ pypy/dist/pypy/translator/backendopt/test/test_inline.py	Mon Aug  7 19:43:46 2006
@@ -223,22 +223,19 @@
         try:
             return h(x)
         except:
-            raise
+            return 87
     def g(x):
         try:
-            f(x)
+            return f(x)
         except CustomError1:
             return 2
-        except CustomError2:
-            return 3
-        return 1
     eval_func = check_inline(f, g, [int], inline_guarded_calls=True)
     result = eval_func([0])
     assert result == 1
     result = eval_func([1])
-    assert result == 2
+    assert result == 87
     result = eval_func([2])
-    assert result == 3
+    assert result == 87
 
 def test_inline_var_exception():
     def f(x):



More information about the Pypy-commit mailing list