Skip to content

Empty lines count towards coverage #24171

@bpasero

Description

@bpasero

Testing #24156

I had this test:

import pytest
import time


@pytest.mark.parametrize("num", range(1, 10))
# this is unclear





def test_num(num):
    time.sleep(0.3)
    assert True
    # nd even more



And the coverage without empty lines is at 85.71% but now at 66.67%:

Image

Metadata

Metadata

Assignees

Labels

area-testinginfo-neededIssue requires more information from postertriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions