summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-24 07:42:29 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-24 07:42:29 -0400
commit4581664df6e25f77b1685359c5aa94c5760be64a (patch)
tree9a60242f8365d132d9a1441f9373b06341186849 /igor.py
parent146d65486a49a9cf50dd7e86d5a95394d516cfbf (diff)
downloadpython-coveragepy-4581664df6e25f77b1685359c5aa94c5760be64a.tar.gz
Python and PyPy metacov results were overwriting each other.
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/igor.py b/igor.py
index e3a2f05..0cb7c70 100644
--- a/igor.py
+++ b/igor.py
@@ -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)