- 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:
parent
0b8863642a
commit
e985f6c013
13
instrumentation-test-case.patch
Normal file
13
instrumentation-test-case.patch
Normal 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
|
||||||
|
|
@ -50,6 +50,8 @@ Thu Jun 16 08:23:59 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
|||||||
* mark-network-tests.patch
|
* mark-network-tests.patch
|
||||||
* mark-tests-path.patch
|
* mark-tests-path.patch
|
||||||
* sys-exec-failures.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
|
- Switch to multibuild per Python version since the testsuite takes
|
||||||
approximately seven eons.
|
approximately seven eons.
|
||||||
|
|
||||||
|
@ -48,6 +48,7 @@ Summary: Python Development Master
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/pdm-project/pdm/
|
URL: https://github.com/pdm-project/pdm/
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/pdm/pdm-%{version}.tar.gz
|
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 blinker}
|
||||||
BuildRequires: %{python_module click >= 7}
|
BuildRequires: %{python_module click >= 7}
|
||||||
BuildRequires: %{python_module packaging}
|
BuildRequires: %{python_module packaging}
|
||||||
|
Loading…
Reference in New Issue
Block a user