devtools/testlib.py
changeset 7272 771f594c12a2
parent 7222 fcb8932082a5
child 7314 d3104c697adb
--- a/devtools/testlib.py	Thu Apr 28 15:30:16 2011 +0200
+++ b/devtools/testlib.py	Wed Apr 27 16:38:01 2011 +0200
@@ -562,6 +562,8 @@
             if views:
                 try:
                     view = viewsvreg._select_best(views, req, rset=rset)
+                    if view is None:
+                        raise NoSelectableObject((req,), {'rset':rset}, views)
                     if view.linkable():
                         yield view
                     else: