Commits

Alexander Hesse  committed dc531ba

Fixed stuff again

  • Participants
  • Parent commits 458ff95
  • Branches split-rpython

Comments (0)

Files changed (4)

File rpython/rtyper/lltypesystem/ll2ctypes.py

                     return callback_internal(*cargs)
                 except:
                     import sys
-                    #if conftest.option.usepdb:
+                    #if option.usepdb:
                     #    import pdb; pdb.post_mortem(sys.exc_traceback)
                     global _callback_exc_info
                     _callback_exc_info = sys.exc_info()

File rpython/rtyper/test/test_llinterp.py

     a = t.buildannotator(policy=policy)
     timelog("annotating", a.build_types, func, argtypes, main_entry_point=True)
     if viewbefore == 'auto':
-        viewbefore = getattr(conftest.option, 'view', False)
+        viewbefore = getattr(option, 'view', False)
     if viewbefore:
         a.simplify()
         t.view()
         if len(_lastinterpreted) >= 4: 
             del _tcache[_lastinterpreted.pop(0)]
     if view == 'auto':
-        view = getattr(conftest.option, 'view', False)
+        view = getattr(option, 'view', False)
     if view:
         t.view()
     return interp, graph

File rpython/rtyper/test/test_rvirtualizable2.py

         op_getfield = block.operations[-1]
         assert op_getfield.opname in ('getfield', 'oogetfield')
         funcptr = self.replace_force_virtualizable(rtyper, [graph])
-        if getattr(conftest.option, 'view', False):
+        if getattr(option, 'view', False):
             graph.show()
         op_promote = block.operations[-2]
         op_getfield = block.operations[-1]

File rpython/translator/c/test/test_newgc.py

         for fullname in dir(cls):
             if not fullname.startswith('define'):
                 continue
-            keyword = conftest.option.keyword
+            keyword = option.keyword
             if keyword.startswith('test_'):
                 keyword = keyword[len('test_'):]
                 if keyword not in fullname: