view tests/sitecustomize.py @ 21232:0768cda8b579

test-pyflakes: detect undefined name error It should be able to catch the following mistakes at 2606e7f227f6: mercurial/exchange.py:590: undefined name 'UnknownPartError' mercurial/match.py:346: undefined name 'pat' mercurial/win32.py:365: undefined name '_ERROR_NO_MORE_FILES' tests/killdaemons.py:46: undefined name 'check'
author Yuya Nishihara <yuya@tcha.org>
date Tue, 29 Apr 2014 12:54:01 +0900
parents 0b21ae0a2366
children 031947baf4d0
line wrap: on
line source

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