[pypy-svn] r56406 - pypy/dist/pypy/interpreter/test

fijal at codespeak.net fijal at codespeak.net
Thu Jul 10 10:42:47 CEST 2008


Author: fijal
Date: Thu Jul 10 10:42:45 2008
New Revision: 56406

Modified:
   pypy/dist/pypy/interpreter/test/test_executioncontext.py
Log:
(fijal, stephan) A test for builtin-level profiling


Modified: pypy/dist/pypy/interpreter/test/test_executioncontext.py
==============================================================================
--- pypy/dist/pypy/interpreter/test/test_executioncontext.py	(original)
+++ pypy/dist/pypy/interpreter/test/test_executioncontext.py	Thu Jul 10 10:42:45 2008
@@ -62,17 +62,19 @@
         assert space.sys.checkinterval / 10 < i < space.sys.checkinterval * 3
 
     def test_llprofile(self):
+        py.test.skip("not working yet")
         l = []
         
-        def profile_func(space, w_arg, event, frame, w_aarg):
+        def profile_func(space, w_arg, frame, event, w_aarg):
             assert w_arg is space.w_None
-            l.append(frame)
+            l.append(event)
         
         space = self.space
         space.getexecutioncontext().setllprofile(profile_func, space.w_None)
         space.appexec([], """():
-        pass
+        l = []
+        l.append(3)
         """)
         space.getexecutioncontext().setllprofile(None, None)
-        assert l == ['call', 'return', 'call', 'return']
+        assert l == ['call', 'return', 'call', 'c_call', 'c_return', 'return']
 



More information about the Pypy-commit mailing list