[packages/python3-propcache] Fix tests

arekm arekm at pld-linux.org
Mon Feb 10 19:21:38 CET 2025


commit 1c216788f3630df8acab5512e177d44e322f1d99
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Feb 10 19:01:19 2025 +0100

    Fix tests

 python3-propcache.spec | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/python3-propcache.spec b/python3-propcache.spec
index 1ff35b9..acab965 100644
--- a/python3-propcache.spec
+++ b/python3-propcache.spec
@@ -17,7 +17,7 @@ BuildRequires:	python3-build
 BuildRequires:	python3-installer
 BuildRequires:	python3-modules >= 1:3.9
 %if %{with tests}
-#BuildRequires:	python3-
+BuildRequires:	python3-pytest-xdist
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 2.044
@@ -45,8 +45,6 @@ Dokumentacja API modułu Pythona %{module}.
 %prep
 %setup -q -n %{module}-%{version}
 
-sed -i -e 's#--numprocesses=auto##g' -e 's#--numprocesses=0##g' pytest.ini
-
 %build
 %py3_build_pyproject
 
@@ -54,7 +52,7 @@ sed -i -e 's#--numprocesses=auto##g' -e 's#--numprocesses=0##g' pytest.ini
 %{__python} -m zipfile -e build-3/*.whl build-3-test
 # use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pytest_codspeed \
+PYTEST_PLUGINS=pytest_codspeed,xdist,benchmark \
 %{__python3} -m pytest -o pythonpath="$PWD/build-3-test" tests
 %endif
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-propcache.git/commitdiff/1c216788f3630df8acab5512e177d44e322f1d99



More information about the pld-cvs-commit mailing list