public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Lumir Balhar <lbalhar@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-zope-testrunner] rawhide: Fix test failure with Python 3.15
Date: Wed, 03 Jun 2026 09:58:16 GMT	[thread overview]
Message-ID: <178048069609.1.2785738646657068395.rpms-python-zope-testrunner-d8685d24adcd@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-06-03  9:58 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=178048069609.1.2785738646657068395.rpms-python-zope-testrunner-d8685d24adcd@fedoraproject.org \
    --to=lbalhar@redhat.com \
    --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