salt/tests/support/coverage/sitecustomize.py
2019-01-25 12:58:52 +00:00

12 lines
272 B
Python

# -*- coding: utf-8 -*-
'''
Python will always try to import sitecustomize.
We use that fact to try and support code coverage for sub-processes
'''
from __future__ import absolute_import
try:
import coverage
coverage.process_startup()
except ImportError:
pass