summaryrefslogtreecommitdiff
path: root/tests/test_pickle2json.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
commit4a2c55378422df624c9928327a493c7b2b9c7400 (patch)
tree61c1a480b70b3bdd7fc409c61810fdfbd09f5981 /tests/test_pickle2json.py
parente3bb087bfe10cce8ca4b260484740b0a3ffc5673 (diff)
downloadpython-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_pickle2json.py')
-rw-r--r--tests/test_pickle2json.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_pickle2json.py b/tests/test_pickle2json.py
index 296f3dc..433dade 100644
--- a/tests/test_pickle2json.py
+++ b/tests/test_pickle2json.py
@@ -33,7 +33,7 @@ class Pickle2JsonTestInTempDir(DataTestHelpers, CoverageTest):
def test_read_write_lines_pickle(self):
# Test the old pickle format.
covdata1 = CoverageData()
- covdata1.set_lines(LINES_1)
+ covdata1.add_lines(LINES_1)
self.write_pickled_file(covdata1, "lines.pkl")
pickle2json("lines.pkl", "lines.json")
@@ -45,7 +45,7 @@ class Pickle2JsonTestInTempDir(DataTestHelpers, CoverageTest):
def test_read_write_arcs_pickle(self):
# Test the old pickle format.
covdata1 = CoverageData()
- covdata1.set_arcs(ARCS_3)
+ covdata1.add_arcs(ARCS_3)
self.write_pickled_file(covdata1, "arcs.pkl")
pickle2json("arcs.pkl", "arcs.json")