-
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
Multiple test failures when trying to run tests locally #12329
Comments
What platform are you on, and how did you install Python? |
I'm on Ubuntu via WSL2 (on latest Windows 10) and I installed Python using the apt repo ppa:deadsnakes/ppa. But given you're asking I tried a clean install:
Output:
Is there a reccomend different way to install / set up? At some point in the past I was able to get the test suite to pass on Ubuntu via WSL2 (although I've never got it to pass in Windows directly). |
Okie, I think I know what's happening here -- it's the Debian patches which are breaking assumptions in the test suite about what stuff will look like. Can you try an installation via pyenv and confirm whether you see failures with that? |
I seem to be getting the same errors, but this could well be user error, I do not under pyenv very well. Here is what I did:
Output:
Am I supposed to use pyenv to create some kind of environment for testing or do I still use venv with pyenv version activated? The documentation appears very sparse and my success rate with pyenv is very low. |
For my latest run I started to suspect that Reading this it appears nox should have the default behavior of not reusing virtual envs, but untrusting of this documention I tried passing in the And low and behold, I only got 1 test failure:
Progress! |
We override it in our noxfile. |
Well I ran the tests another time with no additional changes and that final test failure no longer shows up 😕 Anyway, I'll make a docs PR about how distro versions of Python might cause functional test failures. |
Description
I have been trying to submit PRs to Pip recently but I have having problems running the test suite locally as I get ~14 failures on a clean branch of Pip running the following instructions with Python 3.11: https://pip.pypa.io/en/stable/development/getting-started/#running-tests
My current workaround has to make sure I pass the linting steps and let Pip's CI workflow run the tests and see what test failures that shows. However this is a little frustrating as my local computer can complete all tests about 20x faster.
Expected behavior
No test failures when following doc instrunctions on how to run tests
pip version
pip 23.3.dev0
Python version
3.11
OS
Linux
How to Reproduce
git clone https://github.com/pypa/pip
(or your fork)cd pip
python3.11 -m venv .venv
source .venv/bin/activate
python -m pip install -e .
python -m pip install nox
nox -s test-3.11 -- -n auto
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: