Skip to content

Commit a2dd77a

Browse files
committed
Fix test
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
1 parent fe65884 commit a2dd77a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ test = [
9999
"setuptools>=75.3; python_version<='3.8'",
100100
"setuptools>=75.8; python_version>'3.8'",
101101
"time-machine>=2.15; implementation_name!='pypy'",
102-
"wheel>=0.45.1",
102+
"wheel>=0.45.1; python_version<='3.9'",
103103
]
104104
type = [
105105
"mypy==1.15",

tests/session/cmd/test_sequential.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ def test_result_json_sequential(
114114
py_test = get_cmd_exit_run_id(log_report, "py", "test")
115115
assert py_test == [(1, "commands[0]"), (0, "commands[1]")]
116116
packaging_installed = log_report["testenvs"]["py"].pop("installed_packages")
117-
expected_pkg = {"pip", "setuptools", "wheel", "a"}
117+
expected_pkg = {"pip", "setuptools", "a"}
118+
if sys.version_info[0:2] == (3, 8):
119+
expected_pkg.add("wheel")
118120
assert {i[: i.find("==")] if "@" not in i else "a" for i in packaging_installed} == expected_pkg
119121
install_package = log_report["testenvs"]["py"].pop("installpkg")
120122
assert re.match(r"^[a-fA-F0-9]{64}$", install_package.pop("sha256"))

0 commit comments

Comments
 (0)