branch | 3.25 |
changeset 12079 | 4870e5a60a52 |
parent 12052 | 1a1d2f5faddb |
child 12101 | 3fd9c12a4426 |
--- a/cubicweb/pyramid/__init__.py Tue Mar 21 14:17:26 2017 +0100 +++ b/cubicweb/pyramid/__init__.py Mon Mar 20 14:39:22 2017 +0100 @@ -226,7 +226,8 @@ repo = config.registry['cubicweb.repository'] = cwconfig.repository() config.registry['cubicweb.registry'] = repo.vreg - atexit.register(repo.shutdown) + if cwconfig.mode != 'test': + atexit.register(repo.shutdown) if asbool(config.registry.settings.get('cubicweb.defaults', True)): config.include('cubicweb.pyramid.defaults')