Skip to content

Commit

Permalink
Relax test_list_installed_deps() to allow other packages
Browse files Browse the repository at this point in the history
Relax the check in `test_list_installed_deps()` to allow `pip freeze`
to return other packages before `pip`.  This is necessary
if the Python interpreter vendors some packages itself, so that they
are available even in fresh venv.  This is the case e.g. for cffi
in PyPy.
  • Loading branch information
mgorny committed Dec 31, 2022
1 parent 6253d62 commit b6de335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tox_env/python/test_python_api.py
Expand Up @@ -186,6 +186,6 @@ def test_list_installed_deps(in_ci: bool, tox_project: ToxProjectCreator, mocker
mocker.patch("tox.tox_env.python.api.is_ci", return_value=in_ci)
result = tox_project({"tox.ini": "[testenv]\nskip_install = true"}).run("r", "-e", "py")
if in_ci:
assert "py: pip==" in result.out
assert "pip==" in result.out
else:
assert "py: pip==" not in result.out
assert "pip==" not in result.out

0 comments on commit b6de335

Please sign in to comment.