From 35a5b9dea40fcfaca9eee8572909f4f47a749d1a837125029c26f1a5ed5b3bad Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 17 Jun 2022 06:42:06 +0000 Subject: [PATCH] Update instrumentation-test-case OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=9 --- instrumentation-test-case.patch | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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