public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-zope-testrunner] rawhide: Fix test failure with Python 3.15
@ 2026-06-03 9:58 Lumir Balhar
0 siblings, 0 replies; only message in thread
From: Lumir Balhar @ 2026-06-03 9:58 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-zope-testrunner
Branch : rawhide
Commit : d8685d24adcd9e7bf6f66752327cfbda2447a992
Author : Lumir Balhar <lbalhar@redhat.com>
Date : 2026-03-31T11:28:27+02:00
Stats : +28/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-zope-testrunner/c/d8685d24adcd9e7bf6f66752327cfbda2447a992?branch=rawhide
Log:
Fix test failure with Python 3.15
---
diff --git a/205.patch b/205.patch
new file mode 100644
index 0000000..589c907
--- /dev/null
+++ b/205.patch
@@ -0,0 +1,25 @@
+From 7dd2a8305d8c74af0f8b9b209106411b4f2f36cb Mon Sep 17 00:00:00 2001
+From: Lumir Balhar <lbalhar@redhat.com>
+Date: Tue, 31 Mar 2026 11:01:36 +0200
+Subject: [PATCH] Skip _SubTest objects which are internal implementation
+ details exposed in Python 3.15+
+
+---
+ src/zope/testrunner/formatter.py | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/zope/testrunner/formatter.py b/src/zope/testrunner/formatter.py
+index c63b48a..86f362d 100644
+--- a/src/zope/testrunner/formatter.py
++++ b/src/zope/testrunner/formatter.py
+@@ -1457,6 +1457,10 @@ def parse_unittest(test):
+ if testId is None:
+ return None, None, None
+ testClassName = get_test_class_name(test)
++ # Skip _SubTest objects which are internal implementation details
++ # exposed in Python 3.15+
++ if testClassName == 'unittest.case._SubTest':
++ return None, None, None
+ testSuite = testClassName
+ testName = testId[len(testClassName) + 1:]
+ return testSuite, testName, testClassName
diff --git a/python-zope-testrunner.spec b/python-zope-testrunner.spec
index 2cdcd61..ae4d424 100644
--- a/python-zope-testrunner.spec
+++ b/python-zope-testrunner.spec
@@ -14,6 +14,9 @@ URL: https://pypi.python.org/pypi/zope.testrunner
VCS: https://github.com/zopefoundation/zope.testrunner
Source: %{vcs}/archive/%{version}/zope.testrunner-%{version}.tar.gz
+# Fix test failure with python 3.15
+Patch: https://github.com/zopefoundation/zope.testrunner/pull/205.patch
+
BuildArch: noarch
BuildRequires: help2man
BuildRequires: python3-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-03 9:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03 9:58 [rpms/python-zope-testrunner] rawhide: Fix test failure with Python 3.15 Lumir Balhar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox