Commit c9c0c1a0 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[pyramid] Do not register repository.shutdown atexit in test mode

It seems that there already is a special shutdown step for repository in test
mode and pyramid's atexit handler interferes with it leading to assertion
error about 'shutting_down' attribute being True in Repository.shutdown().

branch : 3.25
parent 82d2c1cdf0c2
......@@ -226,7 +226,8 @@ def includeme(config):
repo = config.registry['cubicweb.repository'] = cwconfig.repository()
config.registry['cubicweb.registry'] = repo.vreg
if cwconfig.mode != 'test':
if asbool(config.registry.settings.get('cubicweb.defaults', True)):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment