Skip to content

Commit b044b9c

Browse files
authored
Remove wheel package from tests due to virtualenv v20.31.0 (#478)
1 parent 1407b3d commit b044b9c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ optional-dependencies.test = [
5454
"pytest>=8.3.2",
5555
"pytest-cov>=5",
5656
"pytest-mock>=3.14",
57-
"virtualenv>=20.26.4,<21",
57+
"virtualenv>=20.31.1,<21",
5858
]
5959
urls.Changelog = "https://github.com/tox-dev/pipdeptree/releases"
6060
urls.Documentation = "https://github.com/tox-dev/pipdeptree/blob/main/README.md#pipdeptree"

tests/test_discovery.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def test_local_only(tmp_path: Path, mocker: MockerFixture, capfd: pytest.Capture
3535
main()
3636
out, _ = capfd.readouterr()
3737
found = {i.split("==")[0] for i in out.splitlines()}
38-
expected = {"foo", "pip", "setuptools", "wheel"}
38+
expected = {"foo", "pip", "setuptools"}
3939
if sys.version_info >= (3, 12):
40-
expected -= {"setuptools", "wheel"} # pragma: no cover
40+
expected -= {"setuptools"} # pragma: no cover
4141

4242
assert found == expected
4343

tests/test_non_host.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
def expected_venv_pkgs() -> frozenset[str]:
2121
implementation = python_implementation()
2222
if implementation == "CPython": # pragma: cpython cover
23-
expected = {"pip", "setuptools", "wheel"}
23+
expected = {"pip", "setuptools"}
2424
elif implementation == "PyPy": # pragma: pypy cover
25-
expected = {"cffi", "greenlet", "pip", "hpy", "readline", "setuptools", "wheel"}
25+
expected = {"cffi", "greenlet", "pip", "hpy", "readline", "setuptools"}
2626
if sys.version_info >= (3, 10): # pragma: >=3.10 cover
2727
expected -= {"readline"}
2828
else: # pragma: no cover
2929
raise ValueError(implementation)
3030
if sys.version_info >= (3, 12): # pragma: >=3.12 cover
31-
expected -= {"setuptools", "wheel"}
31+
expected -= {"setuptools"}
3232

3333
return frozenset(expected)
3434

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

8181

0 commit comments

Comments
 (0)