summaryrefslogtreecommitdiff
path: root/tests/test_data.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-02-28 08:28:58 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-02-28 08:28:58 -0500
commit169972546b699f01813131d5356d0edcfc739343 (patch)
tree62a356a51e950dfced5a4db3e8a666ef369c4c0f /tests/test_data.py
parent3f3856702d7e88065dd0e13f022a4d7c69eeaf6b (diff)
downloadpython-coveragepy-git-169972546b699f01813131d5356d0edcfc739343.tar.gz
fix: improve an error message. #803
Fixes #803.
Diffstat (limited to 'tests/test_data.py')
-rw-r--r--tests/test_data.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_data.py b/tests/test_data.py
index fe37bd9e..eac9c36f 100644
--- a/tests/test_data.py
+++ b/tests/test_data.py
@@ -159,13 +159,15 @@ class CoverageDataTest(DataTestHelpers, CoverageTest):
def test_cant_add_arcs_with_lines(self):
covdata = CoverageData()
covdata.add_lines(LINES_1)
- with pytest.raises(CoverageException, match="Can't add arcs to existing line data"):
+ msg = "Can't add branch measurements to existing line data"
+ with pytest.raises(CoverageException, match=msg):
covdata.add_arcs(ARCS_3)
def test_cant_add_lines_with_arcs(self):
covdata = CoverageData()
covdata.add_arcs(ARCS_3)
- with pytest.raises(CoverageException, match="Can't add lines to existing arc data"):
+ msg = "Can't add line measurements to existing branch data"
+ with pytest.raises(CoverageException, match=msg):
covdata.add_lines(LINES_1)
def test_touch_file_with_lines(self):