summaryrefslogtreecommitdiff
path: root/tests/test_data.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-11-28 10:12:56 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-11-29 20:08:48 -0500
commit7e7c44b4f5c484105559690b1efccd84839bc640 (patch)
treeaa91b46a3a986ba9ee1b6375e13e1c780f851714 /tests/test_data.py
parente955f106134029e2b8991a3ad1299377b73a0e55 (diff)
downloadpython-coveragepy-git-7e7c44b4f5c484105559690b1efccd84839bc640.tar.gz
feat: file paths are only remapped if the result exists
Diffstat (limited to 'tests/test_data.py')
-rw-r--r--tests/test_data.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_data.py b/tests/test_data.py
index 79c90420..6a6228d8 100644
--- a/tests/test_data.py
+++ b/tests/test_data.py
@@ -788,6 +788,9 @@ class CoverageDataFilesTest(CoverageTest):
self.assert_file_count(".coverage.*", 2)
+ self.make_file("a.py", "")
+ self.make_file("sub/b.py", "")
+ self.make_file("template.html", "")
covdata3 = DebugCoverageData()
aliases = PathAliases()
aliases.add("/home/ned/proj/src/", "./")