salt/pkg/tests/support/coverage/sitecustomize.py

11 lines
211 B
Python

"""
Python will always try to import sitecustomize.
We use that fact to try and support code coverage for sub-processes
"""
try:
import coverage
coverage.process_startup()
except ImportError:
pass