cubicweb #5576169 some devtools test fail when launched with "pytest -t" [validation pending]

using a virtualenv (built by tox this config http://hg.logilab.org/review/cubicweb/rev/348380a660d6), I get the following errors:

ERROR: test_i18ncube (unittest_i18n.cubePotGeneratorTC)
----------------------------------------------------------------------
Traceback (most recent call last)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/logilab/common/testlib.py", line 645, in _proceed
    testfunc(*args, **kwargs)
  File "/home/denis/cw/cubicweb/devtools/test/data/cubes/i18ntestcube/unittest_i18n.py", line 69, in test_i18ncube
    <no source available>
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/devctl.py", line 449, in update_cube_catalogs
    generate_schema_pot(schemapotstream.write, cubedir)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/devctl.py", line 121, in generate_schema_pot
    vreg.set_schema(schema)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/cwvreg.py", line 587, in set_schema
    self.reload(self.config.appobjects_path(), force_reload=False)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/cwvreg.py", line 638, in reload
    CW_EVENT_MANAGER.emit('after-registry-reload')
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/__init__.py", line 204, in emit
    callback(*args, **kwargs)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/web/application.py", line 192, in set_urlresolver
    vreg=self.vreg)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/logilab/common/registry.py", line 359, in select
    obj =  self._select_best(self[__oid], *args, **kwargs)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/logilab/common/registry.py", line 408, in _select_best
    return self.selected(winners[0], args, kwargs)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/logilab/common/registry.py", line 413, in selected
    return winner(*args, **kwargs)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/web/views/urlpublishing.py", line 89, in __init__
    super(URLPublisherComponent, self).__init__()
TypeError: must be type, not None


[...]

======================================================================
ERROR: test_base_url (unittest_httptest.TwistedCWAnonTC)
----------------------------------------------------------------------
Traceback (most recent call last)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/logilab/common/testlib.py", line 515, in quiet_run
    func(*args, **kwargs)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/httptest.py", line 173, in setUp
    super(CubicWebServerTC, self).setUp()
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/testlib.py", line 403, in setUp
    self._init_repo()
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/testlib.py", line 310, in _init_repo
    db_handler.restore_database(self.test_db_id)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py", line 366, in restore_database
    self._restore_database(backup_coordinates, config)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py", line 795, in _restore_database
    self.get_repo()
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py", line 381, in get_repo
    self._repo = self._new_repo(self.config)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py", line 786, in _new_repo
    repo = super(SQLiteTestDataBaseHandler, self)._new_repo(config)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py", line 396, in _new_repo
    repo = _get_inmemory_repo(config)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/repoapi.py", line 32, in _get_inmemory_repo
    return Repository(config, TasksManager(), vreg=vreg)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/server/repository.py", line 183, in __init__
    self.init_cnxset_pool()
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/server/repository.py", line 225, in init_cnxset_pool
    self.set_schema(config.load_schema(expand_cubes=True))
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/server/repository.py", line 307, in set_schema
    self.vreg.set_schema(schema)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/cwvreg.py", line 587, in set_schema
    self.reload(self.config.appobjects_path(), force_reload=False)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/cwvreg.py", line 638, in reload
    CW_EVENT_MANAGER.emit('after-registry-reload')
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/__init__.py", line 204, in emit
    callback(*args, **kwargs)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/web/application.py", line 192, in set_urlresolver
    vreg=self.vreg)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/logilab/common/registry.py", line 359, in select
    obj =  self._select_best(self[__oid], *args, **kwargs)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/logilab/common/registry.py", line 408, in _select_best
    return self.selected(winners[0], args, kwargs)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/logilab/common/registry.py", line 413, in selected
    return winner(*args, **kwargs)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/web/views/urlpublishing.py", line 89, in __init__
    super(URLPublisherComponent, self).__init__()
TypeError: must be type, not None

                              no stdout
                              no stderr
======================================================================                                                                                                                                                                 [0/1938]
ERROR: test_login (unittest_httptest.TwistedCWIdentTC)
----------------------------------------------------------------------
Traceback (most recent call last)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/logilab/common/testlib.py", line 515, in quiet_run
    func(*args, **kwargs)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/httptest.py", line 173, in setUp
    super(CubicWebServerTC, self).setUp()
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/testlib.py", line 403, in setUp
    self._init_repo()
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/testlib.py", line 309, in _init_repo
    db_handler.build_db_cache(self.test_db_id, self.pre_setup_database)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py", line 490, in build_db_cache
    self.restore_database(DEFAULT_EMPTY_DB_ID)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py", line 366, in restore_database
    self._restore_database(backup_coordinates, config)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py", line 795, in _restore_database
    self.get_repo()
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py", line 381, in get_repo
    self._repo = self._new_repo(self.config)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py", line 786, in _new_repo
    repo = super(SQLiteTestDataBaseHandler, self)._new_repo(config)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/devtools/__init__.py", line 396, in _new_repo
    repo = _get_inmemory_repo(config)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/repoapi.py", line 32, in _get_inmemory_repo
    return Repository(config, TasksManager(), vreg=vreg)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/server/repository.py", line 183, in __init__
    self.init_cnxset_pool()
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/server/repository.py", line 225, in init_cnxset_pool
    self.set_schema(config.load_schema(expand_cubes=True))
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/server/repository.py", line 307, in set_schema
    self.vreg.set_schema(schema)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/cwvreg.py", line 587, in set_schema
    self.reload(self.config.appobjects_path(), force_reload=False)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/cwvreg.py", line 638, in reload
    CW_EVENT_MANAGER.emit('after-registry-reload')
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/__init__.py", line 204, in emit
    callback(*args, **kwargs)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/web/application.py", line 192, in set_urlresolver
    vreg=self.vreg)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/logilab/common/registry.py", line 359, in select
    obj =  self._select_best(self[__oid], *args, **kwargs)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/logilab/common/registry.py", line 408, in _select_best
    return self.selected(winners[0], args, kwargs)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/logilab/common/registry.py", line 413, in selected
    return winner(*args, **kwargs)
  File "/home/denis/cw/cubicweb/.tox/devtools/local/lib/python2.7/site-packages/cubicweb/web/views/urlpublishing.py", line 89, in __init__
    super(URLPublisherComponent, self).__init__()
TypeError: must be type, not None

                              no stdout
                              no stderr
======================================================================
SKIPPED: test_response (unittest_httptest.TwistedCWAnonTC)
        repository is not initialised: TypeError('must be type, not None',)
======================================================================
SKIPPED: test_response_anon (unittest_httptest.TwistedCWAnonTC)
        repository is not initialised: TypeError('must be type, not None',)
======================================================================
SKIPPED: test_response_denied (unittest_httptest.TwistedCWIdentTC)
        repository is not initialised: TypeError('must be type, not None',)
prioritynormal
typebug
done in3.21.0
load0.500
load left0.000
closed by#5ad491852062 [test] Fix unittest_i18n to run properly with "pytest -t" (closes #5576169)
patch[test] Fix unittest_i18n to run properly with "pytest -t" (closes #5576169) [applied]