Bug 2481410 - python-markdown-exec fails to build with Python 3.15: test_output_markdown: assert '<span class="hll">' in '<p><code>bash hl_lines="2"\nšŸ“„ 1\nšŸ“„ 2\nšŸ“„ 3</code></p>'
Summary: python-markdown-exec fails to build with Python 3.15: test_output_markdown: a...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-markdown-exec
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Davide Cavalca
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2026-05-26 09:41 UTC by Karolina Surma
Modified: 2026-05-26 09:41 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2026-05-26 09:41:55 UTC
python-markdown-exec fails to build with Python 3.15.0b1.

_____________________________ test_output_markdown _____________________________

md = <markdown.core.Markdown object at 0x7f5f72b16430>

    def test_output_markdown(md: Markdown) -> None:
        """Assert we can highlight lines in the output.
    
        Parameters:
            md: A Markdown instance (fixture).
        """
        html = md.convert(
            dedent(
                """
                ```tree hl_lines="2"
                1
                2
                3
                ```
                """,
            ),
        )
>       assert '<span class="hll">' in html
E       assert '<span class="hll">' in '<p><code>bash hl_lines="2"\nšŸ“„ 1\nšŸ“„ 2\nšŸ“„ 3</code></p>'

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15-b1/fedora-rawhide-x86_64/10502513-python-markdown-exec/

For all our attempts to build python-markdown-exec with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15-b1/package/python-markdown-exec/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15-b1/

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.


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