view tests/sitecustomize.py @ 23290:59513ec76748

transaction: always generate file on close The conditionnal was buggy and file were only generated if "onclose" was defined. By luck, "onclose" was always defined.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 13 Nov 2014 10:22:47 +0000
parents 0b21ae0a2366
children 031947baf4d0
line wrap: on
line source

try:
    import coverage
    getattr(coverage, 'process_startup', lambda: None)()
except ImportError:
    pass