From 658170cf2e258ab1372b4c6d8cf5d0e196896cadf911e068bdfa345135b4e124 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 5 Mar 2024 13:31:24 +0000 Subject: [PATCH] - Skip broken tests with python 3.12 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flynt?expand=0&rev=9 --- python-flynt.changes | 5 +++++ python-flynt.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-flynt.changes b/python-flynt.changes index 06353c5..e5a45b5 100644 --- a/python-flynt.changes +++ b/python-flynt.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 5 13:30:36 UTC 2024 - Daniel Garcia + +- Skip broken tests with python 3.12 + ------------------------------------------------------------------- Thu Dec 7 21:31:08 UTC 2023 - Dirk Müller diff --git a/python-flynt.spec b/python-flynt.spec index 22b043e..51f686a 100644 --- a/python-flynt.spec +++ b/python-flynt.spec @@ -1,7 +1,7 @@ # # spec file for package python-flynt # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -44,7 +44,7 @@ BuildRequires: %{python_module tomli >= 1.1.0} CLI tool to convert a python project's %-formatted strings to f-strings. %prep -%setup -q -n flynt-%{version} +%autosetup -p1 -n flynt-%{version} %build %pyproject_wheel @@ -55,7 +55,9 @@ CLI tool to convert a python project's %-formatted strings to f-strings. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# Tests that fails with python 3.12 because string formatting changes a bit +donttest="test_mixed_quote_types_unsafe or test_fstringify[string_in_string.py] or test_fstringify_single_line[string_in_string.py]" +%pytest -k "not ($donttest)" %post %python_install_alternative flynt