Show More
@@ -1,17 +1,16 b'' | |||
|
1 | 1 | from __future__ import absolute_import |
|
2 | 2 | import os |
|
3 | 3 | |
|
4 | 4 | if os.environ.get('COVERAGE_PROCESS_START'): |
|
5 | 5 | try: |
|
6 | 6 | import coverage |
|
7 |
import |
|
|
7 | import uuid | |
|
8 | 8 | |
|
9 | # uuid is better, but not available in Python 2.4. | |
|
10 | 9 | covpath = os.path.join(os.environ['COVERAGE_DIR'], |
|
11 |
'cov.%s' % |
|
|
10 | 'cov.%s' % uuid.uuid1()) | |
|
12 | 11 | cov = coverage.coverage(data_file=covpath, auto_data=True) |
|
13 | 12 | cov._warn_no_data = False |
|
14 | 13 | cov._warn_unimported_source = False |
|
15 | 14 | cov.start() |
|
16 | 15 | except ImportError: |
|
17 | 16 | pass |
General Comments 0
You need to be logged in to leave comments.
Login now