diff options
Diffstat (limited to 'tests/test_data.py')
-rw-r--r-- | tests/test_data.py | 6 |
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): |