[pypy-svn] r24797 - pypy/branch/explicit-exceptions/translator/c/test

mwh at codespeak.net mwh at codespeak.net
Wed Mar 22 14:09:56 CET 2006


Author: mwh
Date: Wed Mar 22 14:09:49 2006
New Revision: 24797

Modified:
   pypy/branch/explicit-exceptions/translator/c/test/test_exceptiontransform.py
Log:
enable tests on the branch -- run at your own risk :)


Modified: pypy/branch/explicit-exceptions/translator/c/test/test_exceptiontransform.py
==============================================================================
--- pypy/branch/explicit-exceptions/translator/c/test/test_exceptiontransform.py	(original)
+++ pypy/branch/explicit-exceptions/translator/c/test/test_exceptiontransform.py	Wed Mar 22 14:09:49 2006
@@ -59,7 +59,7 @@
     result = interpret(foo, [])
     assert result == 1
     f = compile_func(foo, [])
-#    assert f() == 1
+    assert f() == 1
     
 def test_passthrough():
     def one(x):
@@ -72,7 +72,7 @@
     t, g = transform_func(foo, [])
     assert len(list(g.iterblocks())) == 4
     f = compile_func(foo, [])
-#    py.test.raises(ValueError, f)
+    py.test.raises(ValueError, f)
 
 def test_catches():
     def one(x):
@@ -98,16 +98,16 @@
     f = compile_func(foo, [int])
     result = interpret(foo, [6])
     assert result == 2
-#    result = f(6)
-#    assert result == 2
+    result = f(6)
+    assert result == 2
     result = interpret(foo, [7])
     assert result == 4
-#    result = f(7)
-#    assert result == 4
+    result = f(7)
+    assert result == 4
     result = interpret(foo, [8])
     assert result == 2
-#    result = f(8)
-#    assert result == 2
+    result = f(8)
+    assert result == 2
 
 
 def test_raises():
@@ -117,6 +117,6 @@
     t, g = transform_func(foo, [int])
     assert len(list(g.iterblocks())) == 4
     f = compile_func(foo, [int])
-#    f(0)
-#    py.test.raises(ValueError, f, 0)
+    f(0)
+    py.test.raises(ValueError, f, 1)
 



More information about the Pypy-commit mailing list