-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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 CLI test coverage #107277
gh-106368: Increase Argument Clinic CLI test coverage #107277
Conversation
- Add test case for directory traversal - Add test cases for invalid CLI option combinations.
With this PR, we're up in 88% coverage. |
self.assertIn(msg, out) | ||
|
||
def test_cli_fail_filename_or_output_and_make(self): | ||
for opts in ("-o", "out.c"), ("filename.c",): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style nit:
for opts in ("-o", "out.c"), ("filename.c",): | |
for opts in [("-o", "out.c"), ("filename.c",)]: |
For me, this is much more readable.
Thanks @erlend-aasland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, @erlend-aasland, I could not cleanly backport this to |
GH-107282 is a backport of this pull request to the 3.12 branch. |
…-107277) (cherry picked from commit 579100f) Co-authored-by: Erlend E. Aasland <[email protected]>
Thanks for the review! |
…) (#107282) (cherry picked from commit 579100f) Co-authored-by: Erlend E. Aasland <[email protected]>
Thanks @erlend-aasland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry @erlend-aasland, I had trouble checking out the |
GH-107326 is a backport of this pull request to the 3.11 branch. |
…ython#107277) (cherry picked from commit 579100f)
Add test case for directory traversal
Add test cases for invalid CLI option combinations.