[packages/python3-testtools] - rel 2, disable broken twisted tests
baggins
baggins at pld-linux.org
Sat Jun 7 15:17:34 CEST 2025
commit f0a223a65afe2697856b0689d3657deb85194407
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Jun 7 16:35:53 2025 +0200
- rel 2, disable broken twisted tests
python3-testtools.spec | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/python3-testtools.spec b/python3-testtools.spec
index c880af9..c163fa8 100644
--- a/python3-testtools.spec
+++ b/python3-testtools.spec
@@ -7,7 +7,7 @@ Summary: Extensions to the Python unit testing framework
Summary(pl.UTF-8): Rozszerzenie szkieletu testów jednostkowych Pythona
Name: python3-testtools
Version: 2.7.2
-Release: 1
+Release: 2
License: MIT
Group: Development/Tools
#Source0Download: https://pypi.org/simple/testtools/
@@ -57,12 +57,19 @@ Dokumentacja HTML do pakietu Pythona testttools.
%prep
%setup -q -n testtools-%{version}
+# Twisted support is optional and currently broken
+%{__sed} -i -e '/twistedsupport,/d' testtools/tests/__init__.py
+
%build
# setup.py exists, but only hatching build stores proper version information
%py3_build_pyproject
%if %{with tests}
-PYTHONPATH=$(pwd) \
+%{__python3} -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= \
+PYTHONPATH="$PWD/build-3-test" \
%{__python3} -m testtools.run testtools.tests.test_suite
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-testtools.git/commitdiff/f0a223a65afe2697856b0689d3657deb85194407
More information about the pld-cvs-commit
mailing list