public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-sushy] epel10: Adapt to EL10 version of testtools
@ 2026-11-23 10:25 Steve Traylen
  0 siblings, 0 replies; only message in thread
From: Steve Traylen @ 2026-11-23 10:25 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

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

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23 10:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 10:25 [rpms/python-sushy] epel10: Adapt to EL10 version of testtools Steve Traylen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox