Submitter | Augie Fackler |
---|---|
Date | Nov. 21, 2016, 11:48 p.m. |
Message ID | <59ed48548b8d21484008.1479772085@arthedain.pit.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/17674/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/tests/sitecustomize.py b/tests/sitecustomize.py --- a/tests/sitecustomize.py +++ b/tests/sitecustomize.py @@ -4,11 +4,10 @@ import os if os.environ.get('COVERAGE_PROCESS_START'): try: import coverage - import random + import uuid - # uuid is better, but not available in Python 2.4. covpath = os.path.join(os.environ['COVERAGE_DIR'], - 'cov.%s' % random.randrange(0, 1000000000000)) + 'cov.%s' % uuid.uuid1()) cov = coverage.coverage(data_file=covpath, auto_data=True) cov._warn_no_data = False cov._warn_unimported_source = False