[pypy-svn] r70447 - pypy/branch/jit-trace-hook/pypy/interpreter/test

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Jan 8 11:26:42 CET 2010


Author: cfbolz
Date: Fri Jan  8 11:26:42 2010
New Revision: 70447

Modified:
   pypy/branch/jit-trace-hook/pypy/interpreter/test/test_pyframe.py
Log:
simplify test a bit


Modified: pypy/branch/jit-trace-hook/pypy/interpreter/test/test_pyframe.py
==============================================================================
--- pypy/branch/jit-trace-hook/pypy/interpreter/test/test_pyframe.py	(original)
+++ pypy/branch/jit-trace-hook/pypy/interpreter/test/test_pyframe.py	Fri Jan  8 11:26:42 2010
@@ -1,3 +1,4 @@
+import py
 
 class AppTestPyFrame:
 
@@ -384,8 +385,6 @@
             l.append((frame.f_code.co_name, event))
             return trace
         def g(i, x):
-            if i > x - 10:
-                print i
             if i == x - 5:
                 sys.settrace(trace)
 
@@ -397,7 +396,7 @@
 
         f(10)
         sys.settrace(None)
-        assert l == [('g', 'call'), ('g', 'line'), ('g', 'line'), ('g', 'line'), ('g', 'return')] * 4
+        assert l == [('g', 'call'), ('g', 'line'), ('g', 'return')] * 4
         l1 = l
         l = []
         f(10000)



More information about the Pypy-commit mailing list