[pypy-svn] r24579 - pypy/dist/pypy/rpython/l3interp/test

ericvrp at codespeak.net ericvrp at codespeak.net
Mon Mar 20 12:50:35 CET 2006


Author: ericvrp
Date: Mon Mar 20 12:50:34 2006
New Revision: 24579

Modified:
   pypy/dist/pypy/rpython/l3interp/test/test_convert.py
   pypy/dist/pypy/rpython/l3interp/test/test_l3interp.py
Log:
Add py.test --view support to l3interp


Modified: pypy/dist/pypy/rpython/l3interp/test/test_convert.py
==============================================================================
--- pypy/dist/pypy/rpython/l3interp/test/test_convert.py	(original)
+++ pypy/dist/pypy/rpython/l3interp/test/test_convert.py	Mon Mar 20 12:50:34 2006
@@ -1,11 +1,14 @@
 import py
 from pypy.rpython.l3interp import convertgraph, l3interp
 from pypy.translator.translator import TranslationContext
+from pypy import conftest
 
 def l3ify(f, inputargs):
     t = TranslationContext()
     t.buildannotator().build_types(f, inputargs)
     t.buildrtyper().specialize()
+    if conftest.option.view:
+        t.view()
     conv = convertgraph.LL2L3Converter()
     g = conv.convert_graph(t.graphs[0])
     # XXX this vile, vile hack prevents the TranslationContext from

Modified: pypy/dist/pypy/rpython/l3interp/test/test_l3interp.py
==============================================================================
--- pypy/dist/pypy/rpython/l3interp/test/test_l3interp.py	(original)
+++ pypy/dist/pypy/rpython/l3interp/test/test_l3interp.py	Mon Mar 20 12:50:34 2006
@@ -5,6 +5,7 @@
 from pypy.translator.translator import TranslationContext
 from pypy.annotation import policy
 from pypy.rpython.lltypesystem import lltype 
+from pypy import conftest
 
 def setup_module(mod):
     mod._cleanups = []
@@ -20,6 +21,8 @@
     pol.allow_someobjects = False
     t.buildannotator(policy=pol).build_types(func, inputargs)
     t.buildrtyper().specialize()
+    if conftest.option.view:
+        t.view()
 
     from pypy.translator.tool.cbuild import skip_missing_compiler
     from pypy.translator.c import genc



More information about the Pypy-commit mailing list