[pypy-svn] r20301 - pypy/branch/somepbc-refactoring/pypy/rpython/test

pedronis at codespeak.net pedronis at codespeak.net
Sun Nov 27 03:06:57 CET 2005


Author: pedronis
Date: Sun Nov 27 03:06:57 2005
New Revision: 20301

Modified:
   pypy/branch/somepbc-refactoring/pypy/rpython/test/test_rbuiltin.py
Log:
fixes for test_rbuiltin tests, now all tests in test_rbuiltin pass.



Modified: pypy/branch/somepbc-refactoring/pypy/rpython/test/test_rbuiltin.py
==============================================================================
--- pypy/branch/somepbc-refactoring/pypy/rpython/test/test_rbuiltin.py	(original)
+++ pypy/branch/somepbc-refactoring/pypy/rpython/test/test_rbuiltin.py	Sun Nov 27 03:06:57 2005
@@ -69,7 +69,12 @@
 
 def enum_direct_calls(translator, func):
     blocks = []
-    graph = translator.getflowgraph(func)
+    result = []
+    for graph in translator.graphs:
+        if getattr(graph, 'func', None) is func:
+            result.append(graph)
+    assert len(result) == 1
+    graph = result[0]
     def visit(block):
         if isinstance(block, flowmodel.Block):
             blocks.append(block)



More information about the Pypy-commit mailing list