tests/sitecustomize.py
author Brodie Rao <brodie@bitheap.org>
Sun, 01 May 2011 12:14:22 +0200
changeset 14103 a36e8c99d51c
parent 10648 58128004cca1
child 14971 0b21ae0a2366
permissions -rw-r--r--
color: use ui.formatted() to test TTYness, not sys.stdout.isatty() This fixes the color extension not working with pager (broken in 877390020477). The pager extension already sets ui.formatted=True to allow this use case.

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