cubicweb #8785708 dataimport tests sometimes fails [validation pending]

if test_massive_import.py is launched before unittest_importer.py, the latter fails.

======================================================================
ERROR: test_import_non_inlined_relation (unittest_importer.ExtEntitiesImporterTC)
Check import of ext entities with non inlined relation
----------------------------------------------------------------------
Traceback (most recent call last)
File "/var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/dataimport/.tox/dataimport/local/lib/python2.7/site-packages/logilab/common/testlib.py", line 463, in _proceed
testfunc(*args, **kwargs)
File "/var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/dataimport/dataimport/test/unittest_importer.py", line 103, in test_import_non_inlined_relation
self.assertEqual(entity.connait[0].nom, 'Richelieu')
IndexError: tuple index out of range

no stdout
no stderr
======================================================================
FAIL: test_nosource (unittest_importer.RelationMappingTC)
----------------------------------------------------------------------
Traceback (most recent call last)
File "/var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/dataimport/.tox/dataimport/local/lib/python2.7/site-packages/logilab/common/testlib.py", line 463, in _proceed
testfunc(*args, **kwargs)
File "/var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/dataimport/dataimport/test/unittest_importer.py", line 39, in test_nosource
set([(bob_eid, alice_eid), (alice_eid, bob_eid)]))
File "/usr/lib/python2.7/unittest/case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib/python2.7/unittest/case.py", line 796, in assertSetEqual
self.fail(self._formatMessage(msg, standardMsg))
File "/usr/lib/python2.7/unittest/case.py", line 410, in fail
raise self.failureException(msg)
AssertionError: Items in the second set but not the first:
(815, 816)

no stdout
no stderr
======================================================================
FAIL: test_with_source (unittest_importer.RelationMappingTC)
----------------------------------------------------------------------
Traceback (most recent call last)
File "/var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/dataimport/.tox/dataimport/local/lib/python2.7/site-packages/logilab/common/testlib.py", line 463, in _proceed
testfunc(*args, **kwargs)
File "/var/lib/jenkins/jobs/cubicweb/workspace/TOXENV/dataimport/dataimport/test/unittest_importer.py", line 48, in test_with_source
set([(bob_eid, alice_eid), (alice_eid, bob_eid)]))
File "/usr/lib/python2.7/unittest/case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib/python2.7/unittest/case.py", line 796, in assertSetEqual
self.fail(self._formatMessage(msg, standardMsg))
File "/usr/lib/python2.7/unittest/case.py", line 410, in fail
raise self.failureException(msg)
AssertionError: Items in the second set but not the first:
(815, 816)

no stdout
no stderr

priorityminor
typebug
done in3.22.0
load2.000
load left0.000
closed by#c3606b52092c [hooks] build EnsureSymmetricRelations{Add,Delete} dynamically
patch[tox] Use stdlib unittest runner for dataimport tests [rejected][hooks] build EnsureSymmetricRelations{Add,Delete} dynamically [applied][hook] drop cache on filterable_selectors [rejected][hooks] work around filterable_selectors cache on hooks during tests [rejected]