devtools/testlib.py
changeset 2234 1fbcf202882d
parent 2187 00631850a69e
parent 2219 bb5098e74b82
child 2650 18aec79ec3a3
--- a/devtools/testlib.py	Mon Jun 29 14:12:18 2009 +0200
+++ b/devtools/testlib.py	Thu Jul 02 10:35:03 2009 +0200
@@ -249,6 +249,8 @@
     def iter_automatic_rsets(self, limit=10):
         """generates basic resultsets for each entity type"""
         etypes = self.to_test_etypes()
+        if not etypes:
+            return
         for etype in etypes:
             yield self.execute('Any X LIMIT %s WHERE X is %s' % (limit, etype))
         etype1 = etypes.pop()