Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unreachable code was marked as covered #24169

Open
bpasero opened this issue Sep 24, 2024 · 0 comments
Open

Unreachable code was marked as covered #24169

bpasero opened this issue Sep 24, 2024 · 0 comments
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@bpasero
Copy link
Member

bpasero commented Sep 24, 2024

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:

Image

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants