- Add patch instrumentation-test-case.patch:

* Instrument a test case for ease of debugging.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=8
This commit is contained in:
Steve Kowalik 2022-06-17 03:03:04 +00:00 committed by Git OBS Bridge
parent 0b8863642a
commit e985f6c013
3 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -50,6 +50,8 @@ Thu Jun 16 08:23:59 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
* 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.

View File

@ -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}