view tests/sitecustomize.py @ 21387:82f8d4e95c87

run-test: fix AttributeError in the --interactive prompt One must choose between ``"y yes".split()`` and ``('y', 'yes')``. I choose the later. The feature still crash when you answer "yes" to use it. But at least, the prompt itself works.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Sat, 17 May 2014 00:38:48 -0700
parents 0b21ae0a2366
children 031947baf4d0
line wrap: on
line source

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