Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Sphinx for openSUSE:Factory checked in at 2026-10-13 17:43:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Sphinx (Old) and /work/SRC/openSUSE:Factory/.python-Sphinx.new.3698736 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Sphinx" Tue Oct 13 17:43:35 2026 rev:116 rq:1384297 version:9.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Sphinx/python-Sphinx.changes 2026-08-21 16:50:35.418126957 +0200 +++ /work/SRC/openSUSE:Factory/.python-Sphinx.new.3698736/python-Sphinx.changes 2026-10-13 17:44:15.330574984 +0200 @@ -1,0 +2,5 @@ +Mon Oct 12 12:16:54 UTC 2026 - Markéta Machová <[email protected]> + +- Add upstream cpython-autodoc.patch to fix tests + +------------------------------------------------------------------- New: ---- cpython-autodoc.patch ----------(New B)---------- New: - Add upstream cpython-autodoc.patch to fix tests ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Sphinx.spec ++++++ --- /var/tmp/diff_new_pack.9hhwlj/_old 2026-10-13 17:44:16.050605160 +0200 +++ /var/tmp/diff_new_pack.9hhwlj/_new 2026-10-13 17:44:16.052605243 +0200 @@ -48,6 +48,8 @@ Source99: python-Sphinx.keyring # PATCH-FIX-UPSTREAM fix tests with Pygments 2.21.0 gh#sphinx-doc/sphinx#14611 Patch0: tests.patch +# PATCH-FIX-UPSTREAM Fix failure in test_cfunction with new Python snapshots: "asctime([time_tuple])" != "asctime([tuple])" gh#sphinx-doc/sphinx#14683 +Patch1: cpython-autodoc.patch BuildRequires: %{python_module base >= 3.12} BuildRequires: %{python_module flit-core >= 3.11} BuildRequires: %{python_module pip} ++++++ cpython-autodoc.patch ++++++ >From 48b4a0f27e904d89ccdc0a66461a02744fbf57e6 Mon Sep 17 00:00:00 2001 From: Dmitry Shachnev <[email protected]> Date: Tue, 15 Sep 2026 14:18:49 +0300 Subject: [PATCH] Fix failure in test_cfunction: "asctime([time_tuple])" != "asctime([tuple])" See https://github.com/python/cpython/pull/155790 (it will be part of upcoming v3.14.8 and v3.13.16 releases). --- .../test_ext_autodoc_autofunction.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tests/test_ext_autodoc/test_ext_autodoc_autofunction.py b/tests/test_ext_autodoc/test_ext_autodoc_autofunction.py index 485329ebb37..99de72b8b6a 100644 --- a/tests/test_ext_autodoc/test_ext_autodoc_autofunction.py +++ b/tests/test_ext_autodoc/test_ext_autodoc_autofunction.py @@ -6,6 +6,8 @@ from __future__ import annotations +import sys + import pytest from tests.test_ext_autodoc.autodoc_util import do_autodoc @@ -123,9 +125,9 @@ def test_singledispatch() -> None: def test_cfunction() -> None: actual = do_autodoc('function', 'time.asctime') - assert actual == [ + expected = [ '', - '.. py:function:: asctime([tuple]) -> string', + '.. py:function:: asctime([time_tuple]) -> string', ' :module: time', '', " Convert a time tuple to a string, e.g. 'Sat Jun 06 16:26:11 1998'.", @@ -133,6 +135,17 @@ def test_cfunction() -> None: ' is used.', '', ] + # Python versions released before September 2026 used [tuple]: + # https://github.com/python/cpython/pull/155790. + if ( + sys.version_info < (3, 13, 16) + or (3, 14) <= sys.version_info < (3, 14, 8) + # FIXME: Correct upper bound on the next line if the change gets backported + # to 3.15 branch: https://github.com/python/cpython/pull/155804. + or (3, 15) <= sys.version_info < (3, 16) + ): + expected[1] = expected[1].replace('[time_tuple]', '[tuple]') + assert actual == expected def test_wrapped_function() -> None:
