python-pdm/instrumentation-test-case.patch

16 lines
729 B
Diff

Index: pdm-1.15.3/tests/cli/test_use.py
===================================================================
--- pdm-1.15.3.orig/tests/cli/test_use.py
+++ pdm-1.15.3/tests/cli/test_use.py
@@ -13,8 +13,8 @@ from pdm.models.caches import JSONFileCa
def test_use_command(project, invoke):
python = "python" if os.name == "nt" else "python3"
python_path = shutil.which(python)
- result = invoke(["use", "-f", python], obj=project)
- assert result.exit_code == 0
+ result = invoke(["use", "-fv", python], obj=project)
+ assert result.exit_code == 0, f"Stderr: {result.stderr}"
config_content = project.root.joinpath(".pdm.toml").read_text()
assert python_path.replace("\\", "\\\\") in config_content