python-pdm/failed_test_use_command.patch

18 lines
631 B
Diff
Raw Normal View History

---
tests/cli/test_use.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/tests/cli/test_use.py
+++ b/tests/cli/test_use.py
@@ -11,8 +11,8 @@ from pdm.models.caches import JSONFileCa
def test_use_command(project, invoke):
- python_path = Path(shutil.which("python")).as_posix()
- result = invoke(["use", "-f", "python"], obj=project)
+ python_path = Path(shutil.which("python3")).as_posix()
+ result = invoke(["use", "-f", "python3"], obj=project)
assert result.exit_code == 0
config_content = project.root.joinpath(".pdm.toml").read_text()
assert python_path in config_content