@@ -704,6 +704,11 @@ def test_fail_under(json_flag):
704704 p = subprocess .run (f"{ sys .executable } -m slipcover { json_flag } --branch --fail-under 84 tests/branch.py" .split (), check = False )
705705 assert 2 == p .returncode
706706
707+ p = subprocess .run (f"{ sys .executable } -m slipcover --branch --fail-under 93 -m pytest tests/pyt.py" .split (), check = False )
708+ assert 0 == p .returncode
709+
710+ p = subprocess .run (f"{ sys .executable } -m slipcover --branch --fail-under 94 -m pytest tests/pyt.py" .split (), check = False )
711+ assert 2 == p .returncode
707712
708713def test_reports_on_other_sources (tmp_path ):
709714 out_file = tmp_path / "out.json"
@@ -1286,7 +1291,6 @@ def test_xml_flag_with_pytest(tmp_path):
12861291 assert lines [7 ].get ('branch' ) is None
12871292 assert lines [7 ].get ('condition-coverage' ) is None
12881293 assert lines [7 ].get ('missing-branches' ) is None
1289-
12901294 assert lines [8 ].get ('number' ) == '10'
12911295 assert lines [8 ].get ('hits' ) == '1'
12921296 assert lines [8 ].get ('branch' ) is None
@@ -1399,7 +1403,6 @@ def test_xml_flag_with_branches_and_pytest(tmp_path):
13991403 assert lines [7 ].get ('branch' ) is None
14001404 assert lines [7 ].get ('condition-coverage' ) is None
14011405 assert lines [7 ].get ('missing-branches' ) is None
1402-
14031406 assert lines [8 ].get ('number' ) == '10'
14041407 assert lines [8 ].get ('hits' ) == '1'
14051408 assert lines [8 ].get ('branch' ) is None
0 commit comments