devtools/testlib.py
changeset 2770 356e9d7c356d
parent 2668 979c7ccb4a86
child 2774 a9a2dca5db20
--- a/devtools/testlib.py	Tue Aug 11 12:42:01 2009 +0200
+++ b/devtools/testlib.py	Tue Aug 11 13:01:56 2009 +0200
@@ -284,7 +284,7 @@
                      and not issubclass(view, NotificationView)]
             if views:
                 try:
-                    view = viewsvreg.select_best(views, req, rset=rset)
+                    view = viewsvreg._select_best(views, req, rset=rset)
                     if view.linkable():
                         yield view
                     else:
@@ -392,7 +392,7 @@
         try:
             orig_select_best = reg.__class__.__orig_select_best
         except:
-            orig_select_best = reg.__class__.select_best
+            orig_select_best = reg.__class__._select_best
         def instr_select_best(self, *args, **kwargs):
             selected = orig_select_best(self, *args, **kwargs)
             try:
@@ -402,7 +402,7 @@
             except AttributeError:
                 pass # occurs on reg used to restore database
             return selected
-        reg.__class__.select_best = instr_select_best
+        reg.__class__._select_best = instr_select_best
         reg.__class__.__orig_select_best = orig_select_best
 
 def print_untested_objects(testclass, skipregs=('hooks', 'etypes')):