Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-testtools for
openSUSE:Factory checked in at 2025-09-17 16:37:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-testtools (Old)
and /work/SRC/openSUSE:Factory/.python-testtools.new.27445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-testtools"
Wed Sep 17 16:37:11 2025 rev:37 rq:1305067 version:2.7.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-testtools/python-testtools.changes
2024-09-26 18:53:01.388426971 +0200
+++
/work/SRC/openSUSE:Factory/.python-testtools.new.27445/python-testtools.changes
2025-09-17 16:37:17.317271850 +0200
@@ -1,0 +2,7 @@
+Tue Sep 16 05:42:20 UTC 2025 - Steve Kowalik <[email protected]>
+
+- Add patch resolve-testcase-eq-deprecation-warning.patch:
+ * Don't rely on bool(NotImplemented) which is now a TypeError in
+ Python 3.14.
+
+-------------------------------------------------------------------
New:
----
resolve-testcase-eq-deprecation-warning.patch
----------(New B)----------
New:
- Add patch resolve-testcase-eq-deprecation-warning.patch:
* Don't rely on bool(NotImplemented) which is now a TypeError in
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-testtools.spec ++++++
--- /var/tmp/diff_new_pack.LgQZXU/_old 2025-09-17 16:37:17.977299399 +0200
+++ /var/tmp/diff_new_pack.LgQZXU/_new 2025-09-17 16:37:17.981299566 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-testtools
#
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -34,6 +34,8 @@
Source0:
https://files.pythonhosted.org/packages/source/t/testtools/testtools-%{version}.tar.gz
# PATCH-FIX-UPSTREAM
https://github.com/testing-cabal/testtools/commit/5b8cb6497c7159f593e68de6a13e15f7e78e56e3
Prepare tests for upcoming twisted version
Patch0: twisted.patch
+# PATCH-FIX-UPSTREAM
gh#testing-cabal/testtools#424/commits/79fa5d41a05c423cf43a65d2b347c7c566bcdfa5
+Patch1: resolve-testcase-eq-deprecation-warning.patch
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
++++++ resolve-testcase-eq-deprecation-warning.patch ++++++
>From 79fa5d41a05c423cf43a65d2b347c7c566bcdfa5 Mon Sep 17 00:00:00 2001
From: Stephen Finucane <[email protected]>
Date: Fri, 21 Feb 2025 11:14:35 +0000
Subject: [PATCH] Resolve deprecation warning
See [1] for more info.
[1] https://github.com/python/cpython/issues/79893
Signed-off-by: Stephen Finucane <[email protected]>
---
testtools/testcase.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/testtools/testcase.py b/testtools/testcase.py
index ad983730..4f4923b3 100644
--- a/testtools/testcase.py
+++ b/testtools/testcase.py
@@ -268,8 +268,10 @@ def _reset(self):
def __eq__(self, other):
eq = getattr(unittest.TestCase, "__eq__", None)
- if eq is not None and not unittest.TestCase.__eq__(self, other):
- return False
+ if eq is not None:
+ eq_ = unittest.TestCase.__eq__(self, other)
+ if eq_ is NotImplemented or not eq_:
+ return False
return self.__dict__ == getattr(other, "__dict__", None)
# We need to explicitly set this since we're overriding __eq__