[pypy-commit] pypy default: issue 2978 - print more dots to prevent timeout

mattip pypy.commits at gmail.com
Mon Apr 1 09:39:32 EDT 2019


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r96392:935dacab85cd
Date: 2019-04-01 16:37 +0300
http://bitbucket.org/pypy/pypy/changeset/935dacab85cd/

Log:	issue 2978 - print more dots to prevent timeout

diff --git a/rpython/tool/algo/graphlib.py b/rpython/tool/algo/graphlib.py
--- a/rpython/tool/algo/graphlib.py
+++ b/rpython/tool/algo/graphlib.py
@@ -6,8 +6,10 @@
   'edges' is a dict mapping vertices to a list of edges with its source.
   Note that we can usually use 'edges' as the set of 'vertices' too.
 """
+from rpython.tool.ansi_print import AnsiLogger
 from rpython.tool.identity_dict import identity_dict
 
+log = AnsiLogger('graphlib')
 
 class Edge:
     def __init__(self, source, target):
@@ -292,6 +294,7 @@
             if root in roots_finished:
                 continue
             cycles = all_cycles(root, v_depths, edges)
+            log.dot()
             if not cycles:
                 roots_finished.add(root)
                 continue


More information about the pypy-commit mailing list