Skip to content

Test failures with pygments 2.21.0 #440

Closed

Description

@tiltingpenguin

Describe the bug
In openSUSE we observed 3 tests failing with the new version of Pygments (2.21.0).

test_py_utf8_html_error_template, test_utf8_format_exceptions_pygments and test_custom_tback now fail with AssertionErrors because of the quoting

The Pygments changelog lists HtmlFormatter: " and ' now render literally (https://github.com/pygments/pygments/pull/3185) which is probably the cause of these test failures

To Reproduce
Run the testsuite with Pygments 2.21.0

Error
The stacktrace is too long to post here

Versions

  • OS: openSUSE Tumbleweed
  • Python: 3.13
  • Mako: 1.4.1

Activity

  1. zzzeek commented on Aug 18, 2026

    @zzzeek
    Member

    OK, let's put up a fix, thanks for reporting

  2. sqla-tester commented on Aug 18, 2026

    @sqla-tester
    Collaborator

    Mike Bayer has proposed a fix for this issue in the main branch:

    Accommodate literal quote rendering in Pygments 2.21.0 https://gerrit.sqlalchemy.org/c/sqlalchemy/mako/+/6902

  3. added a commit that references this issue on Aug 18, 2026
    411b4ac
  4. tiltingpenguin commented on Aug 19, 2026

    @tiltingpenguin
    Author

    Thanks for the quick fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions