# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1242205300 -7200 # Node ID f450f1594992cc62b570158458c5b1692b0da943 # Parent 4f4e0c6682e58fdd25d32e331971a8d479fca2ec fix in case only one type is tested diff -r 4f4e0c6682e5 -r f450f1594992 devtools/testlib.py --- a/devtools/testlib.py Wed May 13 10:12:40 2009 +0200 +++ b/devtools/testlib.py Wed May 13 11:01:40 2009 +0200 @@ -249,9 +249,11 @@ etypes = self.to_test_etypes() for etype in etypes: yield self.execute('Any X LIMIT %s WHERE X is %s' % (limit, etype)) - etype1 = etypes.pop() - etype2 = etypes.pop() + try: + etype2 = etypes.pop() + except KeyError: + etype2 = etype1 # test a mixed query (DISTINCT/GROUP to avoid getting duplicate # X which make muledit view failing for instance (html validation fails # because of some duplicate "id" attributes)