diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-24 07:42:29 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-24 07:42:29 -0400 |
commit | 4581664df6e25f77b1685359c5aa94c5760be64a (patch) | |
tree | 9a60242f8365d132d9a1441f9373b06341186849 /igor.py | |
parent | 146d65486a49a9cf50dd7e86d5a95394d516cfbf (diff) | |
download | python-coveragepy-4581664df6e25f77b1685359c5aa94c5760be64a.tar.gz |
Python and PyPy metacov results were overwriting each other.
Diffstat (limited to 'igor.py')
-rw-r--r-- | igor.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -117,8 +117,10 @@ def run_tests_with_coverage(tracer, *nose_args): with open(pth_path, "w") as pth_file: pth_file.write("import coverage; coverage.process_startup()\n") + # Make names for the data files that keep all the test runs distinct. + impl = platform.python_implementation().lower() version = "%s%s" % sys.version_info[:2] - suffix = "%s_%s_%s" % (version, tracer, socket.gethostname()) + suffix = "%s%s_%s_%s" % (impl, version, tracer, socket.gethostname()) import coverage cov = coverage.Coverage(config_file="metacov.ini", data_suffix=suffix) |