public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Steve Traylen <steve.traylen@cern.ch>
To: git-commits@fedoraproject.org
Subject: [rpms/python-sushy] epel10.3: Adapt to EL10 version of testtools
Date: Mon, 23 Nov 2026 10:26:08 GMT	[thread overview]
Message-ID: <179542956844.1.11264761496407266772.rpms-python-sushy-1f1a8dc2715e@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-sushy
Branch : epel10.3
Commit : 1f1a8dc2715eaa738d7c01a81573c70ba341c6c2
Author : Steve Traylen <steve.traylen@cern.ch>
Date   : 2026-11-23T11:25:57+01:00
Stats  : +13/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-sushy/c/1f1a8dc2715eaa738d7c01a81573c70ba341c6c2?branch=epel10.3

Log:
Adapt to EL10 version of testtools

---
diff --git a/el10-testtools.patch b/el10-testtools.patch
new file mode 100644
index 0000000..b13dcec
--- /dev/null
+++ b/el10-testtools.patch
@@ -0,0 +1,10 @@
+--- a/sushy/tests/unit/resources/system/test_pcie_device.py
++++ b/sushy/tests/unit/resources/system/test_pcie_device.py
+@@ -332,5 +332,5 @@ class PCIeDeviceFunctionsTestCase(base.TestCase):
+         mock_get_path.side_effect = exceptions.MissingAttributeError(
+             attribute='PCIeFunctions', resource=self.pcie_dev._path)
+ 
+-        with self.assertRaises(exceptions.MissingAttributeError):
+-            self.pcie_dev.pcie_functions
++        self.assertRaises(exceptions.MissingAttributeError,
++                          getattr, self.pcie_dev, 'pcie_functions')

diff --git a/python-sushy.spec b/python-sushy.spec
index c139652..4641820 100644
--- a/python-sushy.spec
+++ b/python-sushy.spec
@@ -18,6 +18,8 @@ URL: http://launchpad.net/%{sname}/
 
 Source0: http://tarballs.openstack.org/%{sname}/%{sname}-%{version}.tar.gz
 # Required for tarball sources verification
+# testtools a little bit old on EL10
+Patch0:  el10-testtools.patch
 %if 0%{?sources_gpg} == 1
 Source101:        http://tarballs.openstack.org/%{sname}/%{sname}-%{version}.tar.gz.asc
 Source102:        https://releases.openstack.org/_static/%{sources_gpg_sign}.txt
@@ -65,7 +67,7 @@ Documentation for Sushy
 %if 0%{?sources_gpg} == 1
 %{gpgverify}  --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0}
 %endif
-%autosetup -n %{sname}-%{version} -S git
+%autosetup -n %{sname}-%{version} -p1 -S git
 
 
 sed -i /^[[:space:]]*-c{env:.*_CONSTRAINTS_FILE.*/d tox.ini

                 reply	other threads:[~2026-11-23 10:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179542956844.1.11264761496407266772.rpms-python-sushy-1f1a8dc2715e@fedoraproject.org \
    --to=steve.traylen@cern.ch \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox