Source

pypy / rpython / rtyper / memory / gctransform / test / test_transform.py

Diff from to

rpython/rtyper/memory/gctransform/test/test_transform.py

+import py
 from rpython.rtyper.memory.gctransform.transform import BaseGCTransformer
 from rpython.flowspace.model import c_last_exception, Variable
 from rpython.translator.backendopt.support import var_needsgc
 from rpython.translator.translator import TranslationContext, graphof
 from rpython.translator.exceptiontransform import ExceptionTransformer
 from rpython.rtyper.lltypesystem import lltype
-from rpython.conftest import option
 
 
 class LLInterpedTranformerTests:
             if isinstance(v.concretetype, lltype.Ptr):
                 assert v.concretetype.TO._gckind != 'gc', "fix the test!"
         llinterp = LLInterpreter(t.rtyper)
-        if option.view:
+        if py.test.config.option.view:
             t.view()
         return llinterp, graph
 
     t.buildannotator().build_types(func, inputtypes)
     if specialize:
         t.buildrtyper().specialize()
-    if option.view:
+    if py.test.config.option.view:
         t.view()
     return t
 
     graphs_borrowed = {}
     for graph in t.graphs[:]:
         graphs_borrowed[graph] = transformer.transform_graph(graph)
-    if option.view:
+    if py.test.config.option.view:
         t.view()
     t.checkgraphs()
     if check: