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

Function is not excluded from the report even though it is specified #1694

Closed
Junkkk opened this issue Oct 24, 2023 · 1 comment
Closed

Function is not excluded from the report even though it is specified #1694

Junkkk opened this issue Oct 24, 2023 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@Junkkk
Copy link

Junkkk commented Oct 24, 2023

Describe the bug
Function is not excluded from the report even though it is specified

To Reproduce
Python 3.10.11
coverage_version: 7.3.2

i got func like that

def some(
    a: int
):
    print(f"{a} rly?")
    return a + 1

and in my pyproject.toml
[tool.coverage.report]
exclude_also = ["def some"]

After testing, report mark this function as untested.

Expected behavior
After testing, this function mark as tested

Additional context
But if i use

def some(a: int):
    print(f"{a} rly?")
    return a + 1

everything is ok

@Junkkk Junkkk added bug Something isn't working needs triage labels Oct 24, 2023
@nedbat
Copy link
Owner

nedbat commented Oct 25, 2023

This is a duplicate of #684.

@nedbat nedbat closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 2023
@nedbat nedbat added duplicate This issue or pull request already exists and removed needs triage labels Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants