diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-07-15 09:39:31 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-07-15 09:39:31 -0400 |
commit | c0da97eb03d4ffe8be8854ad6ff1a2736f169003 (patch) | |
tree | 971b019f78a5f1f2118dd5d46b5edb7937661a1f /tests/test_html.py | |
parent | 4d05ddeeded7f3f594c0614630f467e1bf3fa629 (diff) | |
download | python-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/test_html.py')
-rw-r--r-- | tests/test_html.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_html.py b/tests/test_html.py index a0ab2d4a..94ceb902 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -634,6 +634,7 @@ def compare_html(expected, actual, extra_scrubs=None): (filepath_to_regex(flat_rootname(str(os.getcwd()))), '_TEST_TMPDIR'), (filepath_to_regex(abs_file(os.getcwd())), 'TEST_TMPDIR'), (filepath_to_regex(flat_rootname(str(abs_file(os.getcwd())))), '_TEST_TMPDIR'), + # Old format of test directories that could be in the gold files. (r'/private/var/folders/[\w/]{35}/coverage_test/tests_test_html_\w+_\d{8}', 'TEST_TMPDIR'), (r'_private_var_folders_\w{35}_coverage_test_tests_test_html_\w+_\d{8}', '_TEST_TMPDIR'), ] |