diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-20 09:52:07 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-20 09:52:07 -0400 |
commit | 4a2c55378422df624c9928327a493c7b2b9c7400 (patch) | |
tree | 61c1a480b70b3bdd7fc409c61810fdfbd09f5981 /tests/test_cmdline.py | |
parent | e3bb087bfe10cce8ca4b260484740b0a3ffc5673 (diff) | |
download | python-coveragepy-4a2c55378422df624c9928327a493c7b2b9c7400.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.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index 4c54088..919b035 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) |