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
Fix option error #10608
Fix option error #10608
Conversation
This reverts commit d044e9f.
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.
Hi @markshao,
Thanks for the PR!
Can you include a simple integration test to ensure this does not regress in the future? Thanks!
update rst message Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
Added , pls take a look |
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!
Close #10592
if the cmdline contains both the
--cache-show
and--help
option will cause the internal error . But if contains the--collect-only
and--help
will just output the help message.the root cause is inside
pytest_cmdline_main
ofcacheprovider
, it will really execute thewrap_session
, but it will raise exception due to missing variable assignment . so add the condition express to avoid the conflict .