Bug 2081903 - python-rich FTBFS with the Pygments 2.12.0
Summary: python-rich FTBFS with the Pygments 2.12.0
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-rich
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Parag Nemade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2078223
TreeView+ depends on / blocked
 
Reported: 2022-05-05 00:28 UTC by Charalampos Stratakis
Modified: 2022-05-11 22:15 UTC (History)
1 user (show)

Fixed In Version: python-rich-12.3.0-2.fc37
Clone Of:
Environment:
Last Closed: 2022-05-11 22:15:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
build.log (195.93 KB, text/plain)
2022-05-05 00:28 UTC, Charalampos Stratakis
no flags Details

Description Charalampos Stratakis 2022-05-05 00:28:54 UTC
Created attachment 1877167 [details]
build.log

Currently there is a test failures, hence python-rich FTBFS with the latest Pygments update intended for rawhide:

=================================== FAILURES ===================================
___________________________ test_guess_lexer_yaml_j2 ___________________________

    def test_guess_lexer_yaml_j2():
        # https://github.com/Textualize/rich/issues/2018
        code = """\
    foobar:
        something: {{ raiser() }}
        else: {{ 5 + 5 }}
        """
>       assert Traceback._guess_lexer("test.yaml.j2", code) == "text"
E       AssertionError: assert 'YAML+Jinja' == 'text'
E         - text
E         + YAML+Jinja

tests/test_traceback.py:280: AssertionError
=============================== warnings summary ===============================
tests/test_markup.py:147
  /builddir/build/BUILD/rich-12.3.0/tests/test_markup.py:147: DeprecationWarning: invalid escape sequence '\['
    result = str(render("[dim white]\[url=[/]"))

tests/test_traceback.py:52
  /builddir/build/BUILD/rich-12.3.0/tests/test_traceback.py:52: DeprecationWarning: invalid escape sequence '\.'
    "^│ .+rich/tests/test_traceback\.py:",

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_traceback.py::test_guess_lexer_yaml_j2 - AssertionError: as...
============ 1 failed, 649 passed, 20 skipped, 2 warnings in 5.71s =============

It seems upstream has resolved it on the master branch through https://github.com/Textualize/rich/commit/e2332480eba780be2090b5cc98bee21874d13f33

Full build logs are attached.

Comment 1 Charalampos Stratakis 2022-05-11 01:38:57 UTC
PR: https://src.fedoraproject.org/rpms/python-rich/pull-request/9


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