File tree 3 files changed +12
-5
lines changed
3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,12 @@ upgrading your version of coverage.py.
23
23
Unreleased
24
24
----------
25
25
26
- Nothing yet.
26
+ - If you attempt to combine statement coverage data with branch coverage data,
27
+ coverage.py used to fail with the message "Can't combine arc data with line
28
+ data" or its reverse, "Can't combine line data with arc data." These
29
+ messages used internal terminology, making it hard for people to understand
30
+ the problem. They are now changed to mention "branch coverage data" and
31
+ "statement coverage data."
27
32
28
33
29
34
.. scriv-start-here
Original file line number Diff line number Diff line change @@ -663,9 +663,9 @@ def update(
663
663
getattr (other_data , "_filename" , "???" ),
664
664
))
665
665
if self ._has_lines and other_data ._has_arcs :
666
- raise DataError ("Can't combine arc data with line data" )
666
+ raise DataError ("Can't combine branch coverage data with statement data" )
667
667
if self ._has_arcs and other_data ._has_lines :
668
- raise DataError ("Can't combine line data with arc data" )
668
+ raise DataError ("Can't combine statement coverage data with branch data" )
669
669
670
670
map_path = map_path or (lambda p : p )
671
671
Original file line number Diff line number Diff line change @@ -405,10 +405,12 @@ def test_update_cant_mix_lines_and_arcs(self) -> None:
405
405
covdata2 = DebugCoverageData (suffix = '2' )
406
406
covdata2 .add_arcs (ARCS_3 )
407
407
408
- with pytest .raises (DataError , match = "Can't combine arc data with line data" ):
408
+ msg = "Can't combine branch coverage data with statement data"
409
+ with pytest .raises (DataError , match = msg ):
409
410
covdata1 .update (covdata2 )
410
411
411
- with pytest .raises (DataError , match = "Can't combine line data with arc data" ):
412
+ msg = "Can't combine statement coverage data with branch data"
413
+ with pytest .raises (DataError , match = msg ):
412
414
covdata2 .update (covdata1 )
413
415
414
416
def test_update_file_tracers (self ) -> None :
You can’t perform that action at this time.
0 commit comments