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: Adapt to EL10 version of testtools
Date: Mon, 23 Nov 2026 10:25:39 GMT [thread overview]
Message-ID: <179542953948.1.10585201080181079202.rpms-python-sushy-68fa8267f9ac@fedoraproject.org> (raw)
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
reply other threads:[~2026-11-23 10:25 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=179542953948.1.10585201080181079202.rpms-python-sushy-68fa8267f9ac@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