diff --git a/instrumentation-test-case.patch b/instrumentation-test-case.patch index 107e9b2..2067e77 100644 --- a/instrumentation-test-case.patch +++ b/instrumentation-test-case.patch @@ -2,12 +2,14 @@ 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 -@@ -14,7 +14,7 @@ def test_use_command(project, invoke): +@@ -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) +- result = invoke(["use", "-f", python], obj=project) - assert result.exit_code == 0 -+ assert result.exit_code == 0, f"Stdout: {result.stdout} Stderr: {result.stderr}" ++ 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