Repository navigation
Conversation
TODO: determine why this is necessary; what has changed about the HTML escaping recently that requires this?
This comment was marked as resolved.
This comment was marked as resolved.
jdillard
left a comment
There was a problem hiding this comment.
Thanks for tracking this down. This looks like the right approach as these tests already branch on the Pygments 2.19 whitespace-span change, so dual expectations here make sense.
Just FYI, I'm pretty sure the visible output change came from pygments#3185 (look at the note at the bottom of the description).
Thanks - I've updated the PR description to link to that instead. |
|
@picnixz a small nudge/reminder in case this can be merged |
|
Independent verification, in case it helps the review: on Windows (Python 3.13.13, Pygments 2.21.0), the currently-red set — For context: every open PR's test matrix is currently red on exactly this set (the runs on #14654, #14662, and #14666 all show the same six failures), so merging this would restore review signal across the board. cc @picnixz |
|
Gentle follow-up: this has been approved for a month now, and the Pygments 2.21 failures it fixes are still red across much of the open PR queue, including the viewcode PRs and our #14666. The Windows verification across Pygments 2.20 and 2.21 from early September still holds on current master. I also see #14674 covers part of the same ground. No preference from me on which route lands, but getting one of them in would unblock a lot of CI. Is there anything holding it up that an outside contributor could help with? |
|
Ah sorry, I'm just overwhelmed by my daily job and travels that I don't have enough time for OSS. One comment though: can you refactor the pygments version split and add some |
|
Thanks @picnixz - yep, I'll take a look into refactoring that at some point (I can't promise when, I'm finding it hard to find time to focus here at the moment too). I'll also compare to how any other library/version checks are performed in the test suite. |
|
I see that docutils and latex are still failing. Is there a PR I can merge for that? |
Pull request #14673 from @adamtheturtle resolves most of the When I run that locally today (using the
sphinx/tests/test_builders/test_build_html_5_output.py Lines 148 to 159 in b04a210
E Full diff:
E [
E '',
E - '.. py:function:: asctime([tuple]) -> string',
E + '.. py:function:: asctime([time_tuple]) -> string',
E ? +++++
E ' :module: time',
E '',
E " Convert a time tuple to a string, e.g. 'Sat Jun 06 16:26:11 1998'.",
E ' When the time tuple is not present, current time as returned by '
E 'localtime()',
E ' is used.',
E '',
E ]
tests/test_ext_autodoc/test_ext_autodoc_autofunction.py:126: AssertionError |
|
@jayaddison FWIW I don't have time right now to contribute further to that, but I take no offence at someone taking my work and getting it to shippable! |
|
Ok, thanks @adamtheturtle. Please could you rebase and/or merge-from-master into the branch so that the latest CI status is more clearly visible? |
|
Thanks! |
|
Self-quoting:
Note: that failure has been
Edit: thread #14683 is a pull request, not an issue report thread as I initially thought. It includes a fix, and the fix looks good to me. |
|
Hej, @picnixz the Docutils
As this will continue, the question will be whether for now Docutils HEAD tests should be paused and/or if we want to open a tracking issue, as there is a bit of work open that has been announced in the Docutils Release Notes that will land in the coming days to weeks. |
|
1 similar comment
|
Purpose
This pull request should allow the Sphinx Python unit test suite to pass; it began failing recently following the release of Pygments v2.21.0 that included adjustments to HTML quote-escaping logic: pygments/pygments#3185
This changeset adapts the relevant unit test expectations according to the runtime version of Pygments detected.
References
AI Disclosure
I did not use any AI/LLM tooling for this pull request; neither to develop the changes locally, nor to create the pull request itself.
Edit: correction: a different Pygments PR seems to have been the cause of this; the hyperlink has been updated
Edit: rephrase for conciseness/clarity