[packages/python3-multidict] - fixed tests

qboosh qboosh at pld-linux.org
Fri Jul 11 17:22:21 CEST 2025


commit f38aebefea50edbf1f8fd913db9a8fde72198ccd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Jul 11 17:23:56 2025 +0200

    - fixed tests

 python3-multidict.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/python3-multidict.spec b/python3-multidict.spec
index dff8616..7b5d8bf 100644
--- a/python3-multidict.spec
+++ b/python3-multidict.spec
@@ -1,7 +1,7 @@
 #
 # Conditional build:
 %bcond_without	doc	# API documentation
-%bcond_with	tests	# unit tests
+%bcond_without	tests	# unit and benchmark tests
 
 Summary:	multidict implementation
 Summary(pl.UTF-8):	Implementacja multidict
@@ -18,6 +18,7 @@ BuildRequires:	python3-devel >= 1:3.9
 BuildRequires:	python3-setuptools >= 1:40
 %if %{with tests}
 BuildRequires:	python3-pytest
+BuildRequires:	python3-pytest-benchmark
 BuildRequires:	python3-pytest-cov
 %if "%{_ver_lt %{py3_ver} 3.11}" == "1"
 BuildRequires:	python3-typing_extensions >= 4.1.0
@@ -61,9 +62,14 @@ Dokumentacja API modułu Pythona multidict.
 %py3_build
 
 %if %{with tests}
+%{__mv} multidict{,.away}
+
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_benchmark.plugin \
 PYTHONPATH=$(readlink -f build-3/lib.*) \
 %{__python3} -m pytest tests
+
+%{__mv} multidict{.away,}
 %endif
 
 %if %{with doc}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-multidict.git/commitdiff/f38aebefea50edbf1f8fd913db9a8fde72198ccd



More information about the pld-cvs-commit mailing list