Bug 2350299 - Heads-up: python-diff-cover fails to build with python-pygments 2.19.1 on Fedora 43
Summary: Heads-up: python-diff-cover fails to build with python-pygments 2.19.1 on Fed...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-diff-cover
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ali Erdinc Koroglu
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14 F43FTBFS, RAWHIDEFTBFS 2335657
TreeView+ depends on / blocked
 
Reported: 2025-03-06 11:26 UTC by Karolina Surma
Modified: 2025-03-19 09:35 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Karolina Surma 2025-03-06 11:26:04 UTC
python-diff-cover fails to build with python-pygments 2.19.1 in Fedora 43.
I intend to update python-pygments in Fedora Rawhide in ~1 week.

There may be an upstream solution to the issue (not tested) - version 9.2.3 supposedly contains the fix

The failure:

_______________________________ test_style_defs ________________________________

    def test_style_defs():
        style_str = Snippet.style_defs()
        expected_styles = load_fixture("snippet.css").strip()
    
        # Check that a sample of the styles are present
        # (use only a sample to make the test more robust
        # against Pygments changes).
        for expect_line in expected_styles.split("\n"):
>           assert expect_line in style_str
E           AssertionError: assert '.o { color: #666666 } /* Operator */' in 'pre { line-height: 125%; }\ntd.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; pa...e.Instance */\n.vm { color: #19177C } /* Name.Variable.Magic */\n.il { color: #666 } /* Literal.Number.Integer.Long */'

The testing takes place in COPR:
https://copr.fedorainfracloud.org/coprs/ksurma/pygments-2.19.1-f43/package/python-diff-cover


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