Bug 2488372

Summary: python-sphinx fails to build with Python 3.15: test_stemmer: assert is_registered_term(searchindex, 'intern')
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-sphinxAssignee: Karolina Surma <ksurma>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: aviso, cstratak, dan, ksurma, mhroncok, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-sphinx-9.1.0-5.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-06-29 11:25:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2433833, 2412434    

Description Karolina Surma 2026-06-12 14:48:40 UTC
python-sphinx fails to build with Python 3.15.0b2.

_________________________________ test_stemmer _________________________________
app = <SphinxTestApp buildername='html'>
    @pytest.mark.sphinx('html', testroot='search')
    def test_stemmer(app: SphinxTestApp) -> None:
        app.build(force_all=True)
        searchindex = load_searchindex(app.outdir / 'searchindex.js')
        print(searchindex)
        assert is_registered_term(searchindex, 'findthisstemmedkey')
>       assert is_registered_term(searchindex, 'intern')
E       AssertionError: assert False
E        +  where False = is_registered_term({'alltitles': {'Stemmer': [[1, 'stemmer']], 'escaped title with < and > in it': [[0, None]], 'heading 1': [[3, None]],...'sphinx.domains.citation': 1, ...}, 'filenames': ['escapedtitle.rst', 'index.rst', 'nosearch.rst', 'tocitem.rst'], ...}, 'intern')
tests/test_search.py:147: AssertionError
----------------------------- Captured stdout call -----------------------------
{'alltitles': {'Stemmer': [[1, 'stemmer']], 'escaped title with < and > in it': [[0, None]], 'heading 1': [[3, None]], 'meta keywords': [[1, None]], 'textinheading': [[3, 'textinheading']]}, 'docnames': ['escapedtitle', 'index', 'nosearch', 'tocitem'], 'envversion': {'sphinx': 66, 'sphinx.domains.c': 3, 'sphinx.domains.changeset': 1, 'sphinx.domains.citation': 1, 'sphinx.domains.cpp': 9, 'sphinx.domains.index': 1, 'sphinx.domains.javascript': 3, 'sphinx.domains.math': 2, 'sphinx.domains.python': 4, 'sphinx.domains.rst': 2, 'sphinx.domains.std': 2}, 'filenames': ['escapedtitle.rst', 'index.rst', 'nosearch.rst', 'tocitem.rst'], 'indexentries': {}, 'objects': {}, 'objnames': {}, 'objtypes': {}, 'terms': {'also': 0, 'bat': [1, 3], 'but': [], 'cas': 3, 'charact': 0, 'chineset': [], 'chinesetest': 3, 'content': 0, 'document': 0, 'faq': 3, 'findthiskey': 1, 'findthisstemmedkey': 1, 'has': [], 'head': 1, 'heading': [], 'internat': 1, 'international': [], 'ipsum': 3, 'lor': [], 'lorem': 3, 'notgerman': 1, 'onlygerman': [], 'onlytoogerman': [], 'rawword': 1, 'service部分': 3, 'textinhead': 1, 'textinheading': [], 'the': [], 'this': [], 'thisonetoo': 1, 'thistoo': 1, '可以chinesetesttwo查看': 3, '可以查看': 3, '模块中': 3, '部分': 3}, 'titles': ['escaped title with < and > in it', 'meta keywords', '', 'heading 1'], 'titleterms': {'and': [], 'escap': 0, 'escaped': [], 'head': 3, 'heading': [], 'it': [], 'keyword': 1, 'meta': 1, 'stemm': [], 'stemmer': 1, 'textinhead': 3, 'textinheading': [], 'titl': 0, 'with': []}}

https://docs.python.org/3.15/whatsnew/3.15.html

For our attempts to build python-sphinx with Python 3.15, see:
https://koji.fedoraproject.org/koji/search?terms=python-sphinx&type=package&match=exact

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 2 Fedora Update System 2026-06-29 11:21:56 UTC
FEDORA-2026-d79dc8c8bd (python-sphinx-9.1.0-5.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-d79dc8c8bd

Comment 3 Fedora Update System 2026-06-29 11:25:14 UTC
FEDORA-2026-d79dc8c8bd (python-sphinx-9.1.0-5.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.