summaryrefslogtreecommitdiff
path: root/tests/coveragetest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-07-15 09:39:31 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-07-15 09:39:31 -0400
commitc0da97eb03d4ffe8be8854ad6ff1a2736f169003 (patch)
tree971b019f78a5f1f2118dd5d46b5edb7937661a1f /tests/coveragetest.py
parent4d05ddeeded7f3f594c0614630f467e1bf3fa629 (diff)
downloadpython-coveragepy-git-c0da97eb03d4ffe8be8854ad6ff1a2736f169003.tar.gz
test: change how we keep mismatched actual output
Now when a goldtest has a failure, the actual mismatched output will be written to the tests/actual directory. Along the way, I removed some obsolete settings which were only used by unittest and unittest_mixins, which we no longer use: - COVERAGE_KEEP_TMP - COVERAGE_ENV_ID - $TMPDIR/coverage_test
Diffstat (limited to 'tests/coveragetest.py')
-rw-r--r--tests/coveragetest.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/coveragetest.py b/tests/coveragetest.py
index 80e8853a..e5543a0b 100644
--- a/tests/coveragetest.py
+++ b/tests/coveragetest.py
@@ -51,15 +51,6 @@ class CoverageTest(
# Let stderr go to stderr, pytest will capture it for us.
show_stderr = True
- # Temp dirs go to $TMPDIR/coverage_test/*
- temp_dir_prefix = "coverage_test/"
- if os.getenv('COVERAGE_ENV_ID'): # pragma: debugging
- temp_dir_prefix += "{}/".format(os.getenv('COVERAGE_ENV_ID'))
-
- # Keep the temp directories if the env says to.
- # $set_env.py: COVERAGE_KEEP_TMP - Keep the temp directories made by tests.
- keep_temp_dir = bool(int(os.getenv("COVERAGE_KEEP_TMP", "0")))
-
def setup_test(self):
super().setup_test()