summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-11-10 08:48:37 -0500
committerNed Batchelder <ned@nedbatchelder.com>2018-11-11 16:45:33 -0500
commit66e64c837fe04ff12d86ec3f196a3ca888bc9c78 (patch)
treef3a4869d3cf3f805cebe6f9e954370a4c3bc9313 /tests
parente5dcb933ab791206040a849eacd726ffe40c348a (diff)
downloadpython-coveragepy-git-66e64c837fe04ff12d86ec3f196a3ca888bc9c78.tar.gz
Keep test tempdirs distinct, for saving and comparing test output
Diffstat (limited to 'tests')
-rw-r--r--tests/coveragetest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py
index d08c334e..8b893e56 100644
--- a/tests/coveragetest.py
+++ b/tests/coveragetest.py
@@ -81,7 +81,7 @@ class CoverageTest(
show_stderr = True
# Temp dirs go to $TMPDIR/coverage_test/*
- temp_dir_prefix = "coverage_test/"
+ temp_dir_prefix = "coverage_test/{}/".format(os.getenv('COVERAGE_ENV_ID', 'x'))
# Keep the temp directories if the env says to.
# $set_env.py: COVERAGE_KEEP_TMP - Keep the temp directories made by tests.