[packages/python3-yarl] Fix tests

arekm arekm at pld-linux.org
Mon Feb 10 19:23:16 CET 2025


commit 43a2f549e05032438ac179b58063a1a97a1b98c1
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Feb 10 19:03:09 2025 +0100

    Fix tests

 python3-yarl.spec | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/python3-yarl.spec b/python3-yarl.spec
index 258bb66..82495db 100644
--- a/python3-yarl.spec
+++ b/python3-yarl.spec
@@ -23,6 +23,7 @@ BuildRequires:	python3-idna >= 2.0
 BuildRequires:	python3-multidict >= 4.0
 BuildRequires:	python3-pytest >= 3.8.2
 BuildRequires:	python3-pytest-cov
+BuildRequires:	python3-pytest-xdist
 %if "%{py3_ver}" == "3.7"
 BuildRequires:	python3-typing_extensions >= 3.7.4
 %endif
@@ -58,8 +59,6 @@ Dokumentacja API modułu Pythona yarl.
 %prep
 %setup -q -n yarl-%{version}
 
-sed -i -e 's#--numprocesses=auto##g' pytest.ini
-
 %build
 %py3_build_pyproject
 
@@ -67,7 +66,7 @@ sed -i -e 's#--numprocesses=auto##g' pytest.ini
 %{__python} -m zipfile -e build-3/*.whl build-3-test
 # run from dir not containing yarl source dir without compiled yarl._quoting_c module)
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS="benchmark" \
+PYTEST_PLUGINS="benchmark,xdist" \
 %{__python3} -m pytest -o pythonpath="$PWD/build-3-test" tests
 %endif
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-yarl.git/commitdiff/43a2f549e05032438ac179b58063a1a97a1b98c1



More information about the pld-cvs-commit mailing list