Bug 2488372 - python-sphinx fails to build with Python 3.15: test_stemmer: assert is_registered_term(searchindex, 'intern')
Summary: python-sphinx fails to build with Python 3.15: test_stemmer: assert is_regist...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-sphinx
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Karolina Surma
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F45FTBFS PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2026-06-12 14:48 UTC by Karolina Surma
Modified: 2026-06-29 11:25 UTC (History)
6 users (show)

Fixed In Version: python-sphinx-9.1.0-5.fc45
Clone Of:
Environment:
Last Closed: 2026-06-29 11:25:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.