ignored_relations should be a set
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 19 Oct 2009 18:15:39 +0200
changeset 3734 b2107f68176c
parent 3733 c3feb6a33f58
child 3735 80fb4083c29b
ignored_relations should be a set
devtools/testlib.py
--- a/devtools/testlib.py	Mon Oct 19 18:15:24 2009 +0200
+++ b/devtools/testlib.py	Mon Oct 19 18:15:39 2009 +0200
@@ -747,7 +747,7 @@
     application_rql = []
 
     no_auto_populate = ()
-    ignored_relations = ()
+    ignored_relations = set()
 
     def to_test_etypes(self):
         return unprotected_entities(self.schema, strict=True)
@@ -779,7 +779,7 @@
             rset = cu.execute('%s X' % etype)
             edict[str(etype)] = set(row[0] for row in rset.rows)
         existingrels = {}
-        ignored_relations = SYSTEM_RELATIONS + self.ignored_relations
+        ignored_relations = SYSTEM_RELATIONS | self.ignored_relations
         for rschema in self.schema.relations():
             if rschema.final or rschema in ignored_relations:
                 continue