-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Make PipTestEnvironment stderr checks more assertive #6871
Comments
A related task is to remove the |
Hello @cjerdonek, Could you help me to clarify a few cases? Cases for
|
My answers:
|
Hey @atugushev , can I please take your work further and work on this issue, if you are not onto this anymore? :-) |
Hey @ssurbhi560. Thanks for pinging me! Can't really find a time to get this done. Would you like to pick it up? Please, feel free to 🙏 |
@atugushev , I would be glad to pick it up and take this further. |
Hey @ssurbhi560 are you working over it? If not, then I'd like to take up this issue. :) |
Hey @gutsytechster! I won't be able to work on this right now, feel free to work on it. :) |
Here, does it mean that for an error to be expected to raise, the variables |
We can tighten the tests in the following way. Rename the
PipTestEnvironment.run()
arguments ofallow_stderr_warning
andallow_stderr_error
arguments toexpect_stderr_warning
andexpect_stderr_error
:pip/tests/lib/__init__.py
Lines 501 to 507 in 2bfafc9
and make the test fail if the argument is passed and a warning or error isn't present, respectively. The idea is that the argument should only be passed if it's actually needed, unlike the current case where the test is passing if the argument is provided unnecessarily.
Also, to do this it might be necessary to do a check of some kind to know if the argument should be passed. For example, whether a deprecation warning is emitted can depend on what version is running.
Posted in its original form by @cjerdonek in #161 (comment)
The text was updated successfully, but these errors were encountered: