Testing #24156
I had this test:
@pytest.mark.parametrize("num", range(1, 10))
def test_num(num):
if False:
time.sleep(0.3)
assert True
time.sleep(0.3)
assert True
And ran the tests (from the https://github.com/eleanorjboyd/inc_dec_example_repo/blob/main/inc_dec_example_test_suite/test_unit_and_pytest_combo.py repo) and the branch was colored as covered:

Testing #24156
I had this test:
And ran the tests (from the https://github.com/eleanorjboyd/inc_dec_example_repo/blob/main/inc_dec_example_test_suite/test_unit_and_pytest_combo.py repo) and the branch was colored as covered: