diff --git a/docs/changelog/2796.misc.rst b/docs/changelog/2796.misc.rst new file mode 100644 index 000000000..3ea0d60d5 --- /dev/null +++ b/docs/changelog/2796.misc.rst @@ -0,0 +1,3 @@ +Relax the assertion in ``test_list_installed_deps`` to allow packages +other than ``pip`` to be present in the fresh venv, to fix tests +on PyPy. diff --git a/tests/tox_env/python/test_python_api.py b/tests/tox_env/python/test_python_api.py index 90e2ab655..0520ff173 100644 --- a/tests/tox_env/python/test_python_api.py +++ b/tests/tox_env/python/test_python_api.py @@ -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