devtools/testlib.py
changeset 8696 0bb18407c053
parent 8695 358d8bed9626
child 8704 933f9693c53d
child 8720 d2f01aaae8c0
equal deleted inserted replaced
8695:358d8bed9626 8696:0bb18407c053
  1204 
  1204 
  1205 # def vreg_instrumentize(testclass):
  1205 # def vreg_instrumentize(testclass):
  1206 #     # XXX broken
  1206 #     # XXX broken
  1207 #     from cubicweb.devtools.apptest import TestEnvironment
  1207 #     from cubicweb.devtools.apptest import TestEnvironment
  1208 #     env = testclass._env = TestEnvironment('data', configcls=testclass.configcls)
  1208 #     env = testclass._env = TestEnvironment('data', configcls=testclass.configcls)
  1209 #     for reg in env.vreg.values():
  1209 #     for reg in env.vreg.itervalues():
  1210 #         reg._selected = {}
  1210 #         reg._selected = {}
  1211 #         try:
  1211 #         try:
  1212 #             orig_select_best = reg.__class__.__orig_select_best
  1212 #             orig_select_best = reg.__class__.__orig_select_best
  1213 #         except Exception:
  1213 #         except Exception:
  1214 #             orig_select_best = reg.__class__._select_best
  1214 #             orig_select_best = reg.__class__._select_best