From fde24b375a37c9b41841e2384bd5a1fbaf39b00cf866e81781a3495674a0853c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 2 Apr 2024 08:10:07 +0000 Subject: [PATCH] Accepting request 1161717 from home:mcalabkova:branches:devel:languages:python - Skip failing tests on Python 3.12 OBS-URL: https://build.opensuse.org/request/show/1161717 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-unify?expand=0&rev=16 --- python-unify.changes | 5 +++++ python-unify.spec | 13 ++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-unify.changes b/python-unify.changes index f316c56..3c814ab 100644 --- a/python-unify.changes +++ b/python-unify.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 19 12:44:31 UTC 2024 - Markéta Machová + +- Skip failing tests on Python 3.12 + ------------------------------------------------------------------- Mon May 18 09:10:41 UTC 2020 - Petr Gajdos diff --git a/python-unify.spec b/python-unify.spec index 5569b15..7c008ff 100644 --- a/python-unify.spec +++ b/python-unify.spec @@ -1,7 +1,7 @@ # # spec file for package python-unify # -# Copyright (c) 2020 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-unify Version: 0.5 Release: 0 @@ -29,7 +28,6 @@ Source9: README.suse BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-setuptools Requires: python-untokenize Requires(post): update-alternatives Requires(postun): update-alternatives @@ -55,7 +53,10 @@ cp %{SOURCE9} . %python_build %check -%pytest +# https://github.com/myint/unify/issues/22 +donttest="DUMMY" +python312_donttest="or (TestUnitsWithFstrings and test_format_code)" +%pytest -k "not ($donttest ${$python_donttest})" %install %python_install @@ -73,6 +74,8 @@ mv %{buildroot}%{_bindir}/unify %{buildroot}%{_bindir}/unify_quotes %license LICENSE %doc README.rst README.suse %python_alternative %{_bindir}/unify_quotes -%{python_sitelib}/* +%{python_sitelib}/unify.py +%pycache_only %{python_sitelib}/__pycache__/unify* +%{python_sitelib}/unify-%{version}*info %changelog