From 1fe902dad7c75db57316212ebb822cfea72493ec17e3032f375778b4e5cfbf32 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 23 Feb 2022 14:04:26 +0000 Subject: [PATCH] - Skip failing test for Python 3.10 (gh#PyCQA/autoflake#104) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autoflake?expand=0&rev=14 --- python-autoflake.changes | 5 +++++ python-autoflake.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-autoflake.changes b/python-autoflake.changes index 3675b9b..6809e2e 100644 --- a/python-autoflake.changes +++ b/python-autoflake.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 23 14:04:15 UTC 2022 - Matej Cepl + +- Skip failing test for Python 3.10 (gh#PyCQA/autoflake#104) + ------------------------------------------------------------------- Mon Aug 31 04:16:47 UTC 2020 - Steve Kowalik diff --git a/python-autoflake.spec b/python-autoflake.spec index 08f2d1f..79e381f 100644 --- a/python-autoflake.spec +++ b/python-autoflake.spec @@ -1,7 +1,7 @@ # # spec file for package python-autoflake # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,7 +30,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pyflakes >= 1.1.0 Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch BuildRequires: %{python_module pyflakes >= 1.1.0} %python_subpackages @@ -63,7 +63,9 @@ autoflake also removes useless pass statements. %check export $LANG=en_US.UTF-8 -%pytest +# gh#PyCQA/autoflake#104 +python310_skiptests='not test_is_literal_or_name' +%pytest -k "${$python_skiptests}" %post %python_install_alternative autoflake