summaryrefslogtreecommitdiff
path: root/tests/test_cmdline.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-20 09:52:07 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-20 09:52:07 -0400
commit33d7789e8e6c15aae52cf3e36eecbd48f36e248e (patch)
treeed0da3866c20392314aea128cd5272a367bc832f /tests/test_cmdline.py
parentb0168bef1eedbe75ffab364a02a0c1ba8466dbd1 (diff)
downloadpython-coveragepy-git-33d7789e8e6c15aae52cf3e36eecbd48f36e248e.tar.gz
Touching files in an empty CoverageData shouldn't force lines. #399
py.test --cov can write empty data to arcs, and then touch files due to --source. This would make the file be about lines instead of arcs, and then combining would fail. This changed a lot of CoverageData, including some of the methods names.
Diffstat (limited to 'tests/test_cmdline.py')
-rw-r--r--tests/test_cmdline.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index 4c54088a..919b0354 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -565,11 +565,11 @@ class CmdLineWithFilesTest(BaseCmdLineTest):
def test_debug_data(self):
data = CoverageData()
- data.set_lines({
+ data.add_lines({
"file1.py": dict.fromkeys(range(1, 18)),
"file2.py": dict.fromkeys(range(1, 24)),
})
- data.set_file_tracers({"file1.py": "a_plugin"})
+ data.add_file_tracers({"file1.py": "a_plugin"})
data_files = CoverageDataFiles()
data_files.write(data)