From 4780acbb1041f5f603611ddaca3326f512701c8b37b4f4e3b974295e252db908 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 13 Feb 2024 13:03:10 +0000 Subject: [PATCH] - Remove broken tests with python 3.12+ OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ethtool?expand=0&rev=17 --- python-ethtool.changes | 5 +++++ python-ethtool.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-ethtool.changes b/python-ethtool.changes index 3e32618..1f17e53 100644 --- a/python-ethtool.changes +++ b/python-ethtool.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 13 13:02:43 UTC 2024 - Daniel Garcia + +- Remove broken tests with python 3.12+ + ------------------------------------------------------------------- Sat Jan 15 16:02:46 UTC 2022 - Dirk Müller diff --git a/python-ethtool.spec b/python-ethtool.spec index bfd8b58..318362a 100644 --- a/python-ethtool.spec +++ b/python-ethtool.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-ethtool # -# Copyright (c) 2022 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 @@ -35,7 +35,7 @@ BuildRequires: net-tools-deprecated BuildRequires: pkgconfig BuildRequires: python-rpm-macros Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives %python_subpackages %description @@ -45,6 +45,8 @@ PCI locations. %prep %setup -q -n %{pypi_name}-%{version} +# No module imp in python 3.12+ +rm tests/test_scripts.py %build export CFLAGS="%{optflags}"