view tests/sitecustomize.py @ 14727:d4b9d3b91ce7 stable

dispatch: check for None before closing repo We were trying to call close() if repo == None and req.repo != None. This can happen when running commands that don't take a repo.
author Idan Kamara <idankk86@gmail.com>
date Fri, 24 Jun 2011 16:30:43 +0300
parents 58128004cca1
children 0b21ae0a2366
line wrap: on
line source

try:
    import coverage
    if hasattr(coverage, 'process_startup'):
        coverage.process_startup()
except ImportError:
    pass