[packages/python3-PyMySQL] Tests (that do not work)

arekm arekm at pld-linux.org
Mon Sep 22 16:47:52 CEST 2025


commit 4b71eaf86673407a3c661f62ead0eca2e1a069ef
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Sep 22 16:47:36 2025 +0200

    Tests (that do not work)

 python3-PyMySQL.spec | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/python3-PyMySQL.spec b/python3-PyMySQL.spec
index f67e98b..b7c6908 100644
--- a/python3-PyMySQL.spec
+++ b/python3-PyMySQL.spec
@@ -1,3 +1,4 @@
+%bcond_with	tests
 Summary:	Pure Python 3 MySQL Client
 Name:		python3-PyMySQL
 Version:	1.1.2
@@ -28,6 +29,13 @@ work on CPython 2.3+, Jython, IronPython, PyPy and Python 3.
 %build
 %py3_build_pyproject
 
+%if %{with tests}
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS= \
+%{__python3} -m pytest tests
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-PyMySQL.git/commitdiff/4b71eaf86673407a3c661f62ead0eca2e1a069ef



More information about the pld-cvs-commit mailing list