Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-106368: Improve coverage reports for argument clinic#107693

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
AlexWaygood merged 1 commit intopython:mainfromAlexWaygood:clinic-coverage
Aug 6, 2023

Conversation

@AlexWaygood
Copy link
Member

@AlexWaygoodAlexWaygood commentedAug 6, 2023
edited by bedevere-bot
Loading

  • Use... rather thanpass for empty bodies in abstract methods that are never meant to be executed. Exclude lines consisting solely of... in our.coveragerc file.
  • Useraise AssertionError instead ofraise RuntimeError for an exception that's never meant to be executed -- it would indicate a bug inTools/clinic/ itself, rather than an incorrect usage of argument clinic, if that line was ever executed. Excluderaise AssertionError( lines in our.coveragerc file.
  • A reasonably large block of code inTools/clinic/cpp.py was being excluded from coverage reports because it was all inside anif __name__ == "__main__" block, andif __name__ == "__main__" blocks are excluded in our.coveragerc file. That was making our coverage forcpp.py look better than it actually was. Move that block inside a_main() function so that it's correctly reported as being uncovered in coverage reports.

Copy link
Contributor

@erlend-aaslanderlend-aasland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks!

AlexWaygood reacted with rocket emoji
@AlexWaygoodAlexWaygood merged commitee3bf45 intopython:mainAug 6, 2023
@AlexWaygoodAlexWaygood deleted the clinic-coverage branchAugust 6, 2023 19:40
kostyafarber pushed a commit to kostyafarber/cpython that referenced this pull requestAug 7, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@erlend-aaslanderlend-aaslanderlend-aasland approved these changes

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@AlexWaygood@erlend-aasland@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp