Bug 2366489 - python-markups fails to build with Python 3.14: AssertionError in test_get_pygments_stylesheet
Summary: python-markups fails to build with Python 3.14: AssertionError in test_get_py...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-markups
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: José Matos
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2371974 (view as bug list)
Depends On:
Blocks: PYTHON3.14 F43FTBFS, RAWHIDEFTBFS F43FailsToInstall, RAWHIDEFailsToInstall
TreeView+ depends on / blocked
 
Reported: 2025-05-15 12:18 UTC by Karolina Surma
Modified: 2025-06-11 16:08 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description Karolina Surma 2025-05-15 12:18:24 UTC
python-markups fails to build with Python 3.14.0b1.

_____________________ APITest.test_get_pygments_stylesheet _____________________

self = <tests.test_public_api.APITest testMethod=test_get_pygments_stylesheet>

    def test_get_pygments_stylesheet(self) -> None:
        try:
            importlib.import_module('pygments.formatters')
        except ImportError:
            raise unittest.SkipTest("Pygments not available")
        stylesheet = get_pygments_stylesheet(".selector")
>       self.assertIn(".selector .nf { color: #0000FF", stylesheet)
E       AssertionError: '.selector .nf { color: #0000FF' not found in 'pre { line-height: 125%; }\ntd.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }\nspan.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }\ntd.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }\nspan.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }\n.selector .hll { background-color: #ffffcc }\n.selector { background: #f8f8f8; }\n.selector .c { color: #3D7B7B; font-style: italic } /* Comment */\n.selector .err { border: 1px solid #F00 } /* Error */\n.selector .k { color: #008000; font-weight: bold } /* Keyword */\n.selector .o { color: #666 } /* Operator */\n.selector .ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */\n.selector .cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */\n.selector .cp { color: #9C6500 } /* Comment.Preproc */\n.selector .cpf { color: #3D7B7B; font-style: italic } /* Comment.PreprocFile */\n.selector .c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */\n.selector .cs { color: #3D7B7B; font-style: italic } /* Comment.Special */\n.selector .gd { color: #A00000 } /* Generic.Deleted */\n.selector .ge { font-style: italic } /* Generic.Emph */\n.selector .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */\n.selector .gr { color: #E40000 } /* Generic.Error */\n.selector .gh { color: #000080; font-weight: bold } /* Generic.Heading */\n.selector .gi { color: #008400 } /* Generic.Inserted */\n.selector .go { color: #717171 } /* Generic.Output */\n.selector .gp { color: #000080; font-weight: bold } /* Generic.Prompt */\n.selector .gs { font-weight: bold } /* Generic.Strong */\n.selector .gu { color: #800080; font-weight: bold } /* Generic.Subheading */\n.selector .gt { color: #04D } /* Generic.Traceback */\n.selector .kc { color: #008000; font-weight: bold } /* Keyword.Constant */\n.selector .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */\n.selector .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */\n.selector .kp { color: #008000 } /* Keyword.Pseudo */\n.selector .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */\n.selector .kt { color: #B00040 } /* Keyword.Type */\n.selector .m { color: #666 } /* Literal.Number */\n.selector .s { color: #BA2121 } /* Literal.String */\n.selector .na { color: #687822 } /* Name.Attribute */\n.selector .nb { color: #008000 } /* Name.Builtin */\n.selector .nc { color: #00F; font-weight: bold } /* Name.Class */\n.selector .no { color: #800 } /* Name.Constant */\n.selector .nd { color: #A2F } /* Name.Decorator */\n.selector .ni { color: #717171; font-weight: bold } /* Name.Entity */\n.selector .ne { color: #CB3F38; font-weight: bold } /* Name.Exception */\n.selector .nf { color: #00F } /* Name.Function */\n.selector .nl { color: #767600 } /* Name.Label */\n.selector .nn { color: #00F; font-weight: bold } /* Name.Namespace */\n.selector .nt { color: #008000; font-weight: bold } /* Name.Tag */\n.selector .nv { color: #19177C } /* Name.Variable */\n.selector .ow { color: #A2F; font-weight: bold } /* Operator.Word */\n.selector .w { color: #BBB } /* Text.Whitespace */\n.selector .mb { color: #666 } /* Literal.Number.Bin */\n.selector .mf { color: #666 } /* Literal.Number.Float */\n.selector .mh { color: #666 } /* Literal.Number.Hex */\n.selector .mi { color: #666 } /* Literal.Number.Integer */\n.selector .mo { color: #666 } /* Literal.Number.Oct */\n.selector .sa { color: #BA2121 } /* Literal.String.Affix */\n.selector .sb { color: #BA2121 } /* Literal.String.Backtick */\n.selector .sc { color: #BA2121 } /* Literal.String.Char */\n.selector .dl { color: #BA2121 } /* Literal.String.Delimiter */\n.selector .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */\n.selector .s2 { color: #BA2121 } /* Literal.String.Double */\n.selector .se { color: #AA5D1F; font-weight: bold } /* Literal.String.Escape */\n.selector .sh { color: #BA2121 } /* Literal.String.Heredoc */\n.selector .si { color: #A45A77; font-weight: bold } /* Literal.String.Interpol */\n.selector .sx { color: #008000 } /* Literal.String.Other */\n.selector .sr { color: #A45A77 } /* Literal.String.Regex */\n.selector .s1 { color: #BA2121 } /* Literal.String.Single */\n.selector .ss { color: #19177C } /* Literal.String.Symbol */\n.selector .bp { color: #008000 } /* Name.Builtin.Pseudo */\n.selector .fm { color: #00F } /* Name.Function.Magic */\n.selector .vc { color: #19177C } /* Name.Variable.Class */\n.selector .vg { color: #19177C } /* Name.Variable.Global */\n.selector .vi { color: #19177C } /* Name.Variable.Instance */\n.selector .vm { color: #19177C } /* Name.Variable.Magic */\n.selector .il { color: #666 } /* Literal.Number.Integer.Long */\n'

tests/test_public_api.py:43: AssertionError
=========================== short test summary info ============================
FAILED tests/test_public_api.py::APITest::test_get_pygments_stylesheet - Asse...

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14-b1/fedora-rawhide-x86_64/09026750-python-markups/

For all our attempts to build python-markups with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/package/python-markups/

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.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
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 1 Karolina Surma 2025-06-11 16:00:28 UTC
*** Bug 2371974 has been marked as a duplicate of this bug. ***


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