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

Pragma on a decorator line should affect the entire function definition #131

Closed
nedbat opened this issue Jun 3, 2011 · 2 comments
Closed
Labels
enhancement New feature or request report

Comments

@nedbat
Copy link
Owner

nedbat commented Jun 3, 2011

From a question in #python:

@abstractmethod   #pragma: no cover
def something_abstract():
    pass

This should exclude the entire definition and body of the function. In particular, it would be good to be able to add an exclusion regex of "@AbstractMethod" and have all the abstract methods be ignored.


@nedbat
Copy link
Owner Author

nedbat commented Nov 28, 2015

Issue #450 was marked as a duplicate of this issue.

@nedbat
Copy link
Owner Author

nedbat commented Nov 28, 2015

This is now working in 376f4caf8c5e (bb) (due to be v4.1).

@nedbat nedbat closed this as completed Nov 28, 2015
@nedbat nedbat added major enhancement New feature or request report labels Jun 23, 2018
agronholm added a commit to agronholm/coveragepy that referenced this issue Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request report
Projects
None yet
Development

No branches or pull requests

1 participant