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
Display empty or None help parameter for parser option as empty string #7427
Conversation
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.
Thanks for the PR @hp310780! I left some comments
Also, don't forget to add a changelog entry
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.
Requesting changes as above, sorry I checked approve on accident
Let’s get some more input. @RonnyPfannschmidt @nicoddemus do we think that in the event of no help provided we should throw an error, or supply a default help |
@hp310780 - I personally vote in favor of an exception. Are you ok with going with that plan while we wait for a review |
Yep! Changed. Let me know of any feedback. Thanks. |
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.
I think other than the comment I left the change looks good
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.
Thanks @hp310780, look good!
Let's wait for Ronny to take a look as well
bump @RonnyPfannschmidt @nicoddemus @bluetech - could someone else take a look at this PR? |
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.
Thanks for the update @hp310780. I left a couple of comments.
LGTM, the requests/suggestions by @bluetech are on point! 👍 |
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.
Almost there, just one last question. I had hoped the improved test would answer it but it didn't.
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.
Backport: #7577 |
[6.0.x] Fix --help crash on add_ini(.., help='') and improve message on help=None (#7427)
In response to Bug #7394 , this PR updates pytest --help to parse an empty string or None as an empty string for the
help
parameter.closes #7394