diff --git a/instrumentation-test-case.patch b/instrumentation-test-case.patch new file mode 100644 index 0000000..107e9b2 --- /dev/null +++ b/instrumentation-test-case.patch @@ -0,0 +1,13 @@ +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): + 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 ++ assert result.exit_code == 0, f"Stdout: {result.stdout} Stderr: {result.stderr}" + config_content = project.root.joinpath(".pdm.toml").read_text() + assert python_path.replace("\\", "\\\\") in config_content + diff --git a/python-pdm.changes b/python-pdm.changes index 8e76bd2..3ce408c 100644 --- a/python-pdm.changes +++ b/python-pdm.changes @@ -50,6 +50,8 @@ Thu Jun 16 08:23:59 UTC 2022 - Steve Kowalik * mark-network-tests.patch * mark-tests-path.patch * sys-exec-failures.patch +- Add patch instrumentation-test-case.patch: + * Instrument a test case for ease of debugging. - Switch to multibuild per Python version since the testsuite takes approximately seven eons. diff --git a/python-pdm.spec b/python-pdm.spec index cda1749..8c9852c 100644 --- a/python-pdm.spec +++ b/python-pdm.spec @@ -48,6 +48,7 @@ Summary: Python Development Master License: MIT URL: https://github.com/pdm-project/pdm/ Source0: https://files.pythonhosted.org/packages/source/p/pdm/pdm-%{version}.tar.gz +Patch0: instrumentation-test-case.patch BuildRequires: %{python_module blinker} BuildRequires: %{python_module click >= 7} BuildRequires: %{python_module packaging}