[pypy-svn] pypy jit-short-preamble: we dont always get summaries

hakanardo commits-noreply at bitbucket.org
Sat Jan 22 12:57:51 CET 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-short-preamble
Changeset: r41210:325b38c5266b
Date: 2011-01-22 10:15 +0100
http://bitbucket.org/pypy/pypy/changeset/325b38c5266b/

Log:	we dont always get summaries

diff --git a/pypy/module/pypyjit/test/test_pypy_c.py b/pypy/module/pypyjit/test/test_pypy_c.py
--- a/pypy/module/pypyjit/test/test_pypy_c.py
+++ b/pypy/module/pypyjit/test/test_pypy_c.py
@@ -152,7 +152,10 @@
 
         from pypy.jit.tool.jitoutput import parse_prof
         summaries  = logparser.extract_category(log, 'jit-summary')
-        self.jit_summary = parse_prof(summaries[-1])
+        if len(summaries) > 0:
+            self.jit_summary = parse_prof(summaries[-1])
+        else:
+            self.jit_summary = None
         
 
     def parse_rawloops(self, rawloops):


More information about the Pypy-commit mailing list