bugfix, make BLS wrapper propagate test output properly

This commit is contained in:
protolambda 2019-05-21 22:53:46 +02:00
parent cfc037fe75
commit 8303c58aa4
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623

View File

@ -76,6 +76,7 @@ def bls_switch(fn):
def entry(*args, **kw):
old_state = bls.bls_active
bls.bls_active = kw.pop('bls_active', DEFAULT_BLS_ACTIVE)
fn(*args, **kw)
out = fn(*args, **kw)
bls.bls_active = old_state
return out
return entry