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
commit33d7789e8e6c15aae52cf3e36eecbd48f36e248e (patch)
treeed0da3866c20392314aea128cd5272a367bc832f /tests/test_pickle2json.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_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 296f3dc8..433dade6 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")