Skip to content

Commit 63ca147

Browse files
Fix missing monkey patch
1 parent 93a317f commit 63ca147

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/usethis/_integrations/environ/test_python.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ def test_with_requires_python_range(
2020
"usethis._integrations.environ.python.get_backend",
2121
lambda: BackendEnum.none,
2222
)
23+
monkeypatch.setattr(
24+
"usethis._integrations.python.version.PythonVersion.from_interpreter",
25+
lambda: PythonVersion(major="3", minor="10", patch=None),
26+
)
2327
(tmp_path / "pyproject.toml").write_text(
2428
"""
2529
[project]

0 commit comments

Comments
 (0)