Closed jamesbraza closed 7 months ago
Running with tox
should prevent exactly this.
I don't think that it is realistic to support running tests with any mix of environment variables.
Oh I see the tox.ini
here, I didn't observe that earlier. Yeah tox
is a viable solution, so feel free to close this out.
I don't think that it is realistic to support running tests with any mix of environment variables.
Fwiw, I was not posing any mix, really it's just one: PIP_EXTRA_INDEX_URL
. But I know what you mean.
An alternate solution could be:
PIP_EXTRA_INDEX_URL
already in envpytest-env
to globally set this environment variable
tox
is doing something similarI agree with @WhyNotHugo.
Environment Versions
$ python -V
3.8.16$ pip --version
23.3.1$ pip-compile --version
https://github.com/jazzband/pip-tools/tree/f20d6ae0af45cfeb54e69d7ead9a9d09449b8d5cSteps to replicate
Expected result
Tests to pass, regardless of
PIP_EXTRA_INDEX_URL
being set (in my~/.zshrc
) or notActual result
Many tests fail due to the extra index URL being set