[pypy-svn] r70747 - pypy/branch/c-traceback/pypy/translator/test

arigo at codespeak.net arigo at codespeak.net
Thu Jan 21 15:19:09 CET 2010


Author: arigo
Date: Thu Jan 21 15:19:09 2010
New Revision: 70747

Modified:
   pypy/branch/c-traceback/pypy/translator/test/test_exceptiontransform.py
Log:
Fix the test to account for the extra block
containing debug_record_traceback.


Modified: pypy/branch/c-traceback/pypy/translator/test/test_exceptiontransform.py
==============================================================================
--- pypy/branch/c-traceback/pypy/translator/test/test_exceptiontransform.py	(original)
+++ pypy/branch/c-traceback/pypy/translator/test/test_exceptiontransform.py	Thu Jan 21 15:19:09 2010
@@ -95,7 +95,7 @@
                 return 3 + x
             return 4 + x
         t, g = self.transform_func(foo, [int])
-        assert len(list(g.iterblocks())) == 9
+        assert len(list(g.iterblocks())) == 10
         f = self.compile(foo, [int])
         result = interpret(foo, [6])
         assert result == 2
@@ -126,7 +126,7 @@
                 return 1 + x
             return 4 + x
         t, g = self.transform_func(foo, [int])
-        assert len(list(g.iterblocks())) == 5
+        assert len(list(g.iterblocks())) == 6
         f = self.compile(foo, [int])
         result = interpret(foo, [6])
         assert result == 2



More information about the Pypy-commit mailing list