Skip to content

Remove wheel package from tests due to virtualenv v20.31.0 #478

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

Merged
merged 1 commit into from
May 8, 2025
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ optional-dependencies.test = [
"pytest>=8.3.2",
"pytest-cov>=5",
"pytest-mock>=3.14",
"virtualenv>=20.26.4,<21",
"virtualenv>=20.31.1,<21",
]
urls.Changelog = "https://github.com/tox-dev/pipdeptree/releases"
urls.Documentation = "https://github.com/tox-dev/pipdeptree/blob/main/README.md#pipdeptree"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ def test_local_only(tmp_path: Path, mocker: MockerFixture, capfd: pytest.Capture
main()
out, _ = capfd.readouterr()
found = {i.split("==")[0] for i in out.splitlines()}
expected = {"foo", "pip", "setuptools", "wheel"}
expected = {"foo", "pip", "setuptools"}
if sys.version_info >= (3, 12):
expected -= {"setuptools", "wheel"} # pragma: no cover
expected -= {"setuptools"} # pragma: no cover

assert found == expected

Expand Down
10 changes: 5 additions & 5 deletions tests/test_non_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
def expected_venv_pkgs() -> frozenset[str]:
implementation = python_implementation()
if implementation == "CPython": # pragma: cpython cover
expected = {"pip", "setuptools", "wheel"}
expected = {"pip", "setuptools"}
elif implementation == "PyPy": # pragma: pypy cover
expected = {"cffi", "greenlet", "pip", "hpy", "readline", "setuptools", "wheel"}
expected = {"cffi", "greenlet", "pip", "hpy", "readline", "setuptools"}
if sys.version_info >= (3, 10): # pragma: >=3.10 cover
expected -= {"readline"}
else: # pragma: no cover
raise ValueError(implementation)
if sys.version_info >= (3, 12): # pragma: >=3.12 cover
expected -= {"setuptools", "wheel"}
expected -= {"setuptools"}

return frozenset(expected)

Expand Down Expand Up @@ -73,9 +73,9 @@ def test_custom_interpreter_with_local_only(
main()
out, _ = capfd.readouterr()
found = {i.split("==")[0] for i in out.splitlines()}
expected = {"pip", "setuptools", "wheel"}
expected = {"pip", "setuptools"}
if sys.version_info >= (3, 12): # pragma: >=3.12 cover
expected -= {"setuptools", "wheel"}
expected -= {"setuptools"}
assert expected == found, out


Expand Down