-
Notifications
You must be signed in to change notification settings - Fork 124
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
Strange test failure with pip 23.0.1 #587
Comments
It’s most definitely related to the Rich upgrade; the second line actually contains only ANSI control codes and is visually empty. So I guess the test may need some fixup. |
One more thing is that when I remove the
It seems that the new rich adds color info for that so the last assert fails as well. |
It's the vendored version of pip (the one setup by the virtualenv process) that matters, I expect, since I think we test with a host pip 23. Looks like the problem is that stderr is now colored too. |
I know it's not your problem at all but you might know enough to help me with the following strange problem causing
test_output_env_subprocess_error[color]
to fail.I maintain python-build RPM package in Fedora and it now fails to build since we updated pip from 22.3.1 to 23.0.1. The problem is this failing test:
It seems that the captured output has 2 lines instead of one for some reason. I've tried to play around with
COLUMNS
env variable and it did not help.The problem is that I'm not able to reproduce the problem outside of the Fedora build system (and mock).
The new version of pip vendors new versions of rich and colorama and my guess is that this problem might relate to that. See pypa/pip@22.3.1...23.0.1#diff-4054444a00305c03a81eff54cb76a5ec5d0001b8671420fa6760a172c8249f4d
Do you have an idea what might be causing this? I'm looking for an environment variable or some setting which stops the wrapping.
The text was updated successfully, but these errors were encountered: