From 5182ca2706546739257876c1b77abbc2cbf0120f5e83923188d7389bcafdd599 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 1 Nov 2024 05:36:03 +0000 Subject: [PATCH] Accepting request 1219738 from home:yeey:OpenWebUI - Disable the failing test for 15.6 OBS-URL: https://build.opensuse.org/request/show/1219738 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ftfy?expand=0&rev=20 --- python-ftfy.changes | 6 ++++++ python-ftfy.spec | 11 +++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/python-ftfy.changes b/python-ftfy.changes index 6744335..e0dba7c 100644 --- a/python-ftfy.changes +++ b/python-ftfy.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Oct 7 16:44:39 UTC 2024 - Meera Belur + +- Disable the failing test for 15.6 + + ------------------------------------------------------------------- Thu Jan 18 11:16:51 UTC 2024 - Daniel Garcia diff --git a/python-ftfy.spec b/python-ftfy.spec index f73eec4..6eebaa7 100644 --- a/python-ftfy.spec +++ b/python-ftfy.spec @@ -15,7 +15,7 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # - +%{?sle15_python_module_pythons} %define skip_python2 1 Name: python-ftfy Version: 6.0.3 @@ -62,7 +62,14 @@ mkdir -p build/testbin ln -s %{buildroot}%{_bindir}/ftfy-%{python_bin_suffix} build/testbin/ftfy } export PATH="build/testbin:$PATH" -%pytest + +# conditionally skip failing test for older SUSE releases +donttest="" +%if 0%{suse_version} < 1600 +donttest+="ftfy.formatting.monospaced_width" +%endif + +%pytest ${donttest:+-k "not (${donttest})"} %post %python_install_alternative ftfy