https://bugzilla.redhat.com/show_bug.cgi?id=2081905
Bug ID: 2081905 Summary: python-stack-data FTBFS with the latest Pygments 2.12.0 Product: Fedora Version: rawhide Status: NEW Component: python-stack-data Assignee: lbalhar@redhat.com Reporter: cstratak@redhat.com CC: epel-packagers-sig@lists.fedoraproject.org, lbalhar@redhat.com, michel@michel-slm.name Target Milestone: --- Classification: Fedora
Created attachment 1877168 --> https://bugzilla.redhat.com/attachment.cgi?id=1877168&action=edit build.log
python-stack-data presents two assertion errors in tests with building with the latest Pygments 2.12.0 intended for rawhide:
=================================== FAILURES =================================== __________________________ test_executing_style_defs ___________________________
def test_executing_style_defs(): style = style_with_executing_node("native", "bg:#ffff00") formatter = HtmlFormatter(style=style) style_defs = formatter.get_style_defs()
expected = """ .c { color: #999999; font-style: italic } .err { color: #a61717; background-color: #e3d2d2 } .c-ExecutingNode { color: #999999; font-style: italic; background-color: #ffff00 } .err-ExecutingNode { color: #a61717; background-color: #ffff00 } """.strip().splitlines()
for line in expected:
assert line.strip() in style_defs
E AssertionError: assert '.c { color: #999999; font-style: italic }' in 'pre { line-height: 125%; }\ntd.linenos .normal { color: #aaaaaa; background-color: transparent; padding-left: 5px; pa...de */\n.il-ExecutingNode { color: #51b2fd; background-color: #ffff00 } /* Literal.Number.Integer.Long.ExecutingNode */' E + where '.c { color: #999999; font-style: italic }' = <built-in method strip of str object at 0x7fecd1c04e10>() E + where <built-in method strip of str object at 0x7fecd1c04e10> = '.c { color: #999999; font-style: italic }'.strip
tests/test_core.py:568: AssertionError ____________________________ test_pygments_example _____________________________
def test_pygments_example():
<snip>
""" E AssertionError: assert 'Terminal256F...=========\n\n' == 'Terminal256F...=========\n\n' E Skipping 75 identical leading characters in diff, use -v to show E - 39mbar(): E ? ^^ E + 39mbar(): E ? ^^ E - 14 | x = 1 E ? -... E E ...Full output truncated (193 lines hidden), use '-vv' to show
tests/test_core.py:620: AssertionError
<snip>
Full build logs are attached