Skip to content
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

Relax test_list_installed_deps() to allow other packages #2796

Merged
merged 1 commit into from Dec 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions 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.
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