Uh oh!
There was an error while loading. Please reload this page.
gh-106368: Increase Argument Clinic CLI test coverage - #107277
Conversation
- Add test case for directory traversal - Add test cases for invalid CLI option combinations.
erlend-aasland
commented
Jul 25, 2023
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.
Style nit:
| foroptsin ("-o", "out.c"), ("filename.c",): | |
| foroptsin[("-o", "out.c"), ("filename.c",)]: |
For me, this is much more readable.
miss-islington
commented
Jul 26, 2023
Thanks @erlend-aasland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
miss-islington
commented
Jul 26, 2023
Sorry, @erlend-aasland, I could not cleanly backport this to |
bedevere-bot
commented
Jul 26, 2023
GH-107282 is a backport of this pull request to the 3.12 branch. |
erlend-aasland
commented
Jul 26, 2023
Thanks for the review! |
miss-islington
commented
Jul 26, 2023
Thanks @erlend-aasland for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
miss-islington
commented
Jul 26, 2023
Sorry @erlend-aasland, I had trouble checking out the |
bedevere-bot
commented
Jul 26, 2023
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.