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

gh-106368: Increase Argument Clinic test coverage #107582

Merged

Conversation

erlend-aasland
Copy link
Contributor

@erlend-aasland erlend-aasland commented Aug 3, 2023

Add tests for DSL parser state machine and docstring formatting

Add tests for DSL parser state machine and docstring formatting
@erlend-aasland
Copy link
Contributor Author

Increases coverage from 91% to 92%. Catches most of the weird branches in the state machine. The remaining branches are hard, if not impossible, to trigger. There are multiple layers of conditions and exception handling; I'd not be surprised if most of the remaining branches are actually unreachable.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

The .py tests LGTM! Just one question:

Lib/test/test_clinic.py Show resolved Hide resolved
@erlend-aasland
Copy link
Contributor Author

Thanks for the review!

@erlend-aasland erlend-aasland linked an issue Aug 3, 2023 that may be closed by this pull request
@erlend-aasland erlend-aasland merged commit a73daf5 into python:main Aug 3, 2023
19 checks passed
@erlend-aasland erlend-aasland deleted the clinic/sm-and-ds-coverage branch August 3, 2023 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increase Argument Clinic test coverage
3 participants