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
Handle missing space with -p #4522
Conversation
Codecov Report
@@ Coverage Diff @@
## features #4522 +/- ##
============================================
+ Coverage 95.75% 95.76% +<.01%
============================================
Files 111 111
Lines 24922 25187 +265
Branches 2459 2515 +56
============================================
+ Hits 23864 24120 +256
- Misses 748 760 +12
+ Partials 310 307 -3
Continue to review full report at Codecov.
|
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.
This gets used before.. |
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.
This should go in features
I believe; while it seems like a bug, it arguably is an additional feature. IMO we don't want projects with addopts= -pmyplugin
to depend on pytest's patch version.
This still does not use an actual argument parser, which only gets instantiated below, and it does not appear to make sense instantiating it just for this pre-parsing it seems. `-p` without the required value is being handled before already though, so it could potentially be passed down from somewhere already?! Fixes pytest-dev#3532.
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.
LGTM 👍
The patch appears to be covered 100% after all. |
This still does not use an actual argument parser, which only gets
instantiated below, and it does not appear to make sense instantiating
it just for this pre-parsing it seems.
-p
without the required value is being handled before already though,so it could potentially be passed down from somewhere already?!
Fixes #3532.