-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Tests: unpick patch for Py314a7 no longer required with Py314b2 #13606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests: unpick patch for Py314a7 no longer required with Py314b2 #13606
Conversation
Partially reverts commit 0227606.
A diff of manually pretty-printed LaTeX output I've been comparing is: 100c100
< \caption{labeled figure}\label{\detokenize{index:id1}}\label{\detokenize{index:figure2}}\label{\detokenize{index:figure1}}\end{figure}
---
> \caption{labeled figure}\label{\detokenize{index:id2}}\label{\detokenize{index:figure2}}\label{\detokenize{index:figure1}}\end{figure}
137c137
< \sphinxcaption{table caption}\label{\detokenize{index:id2}}\label{\detokenize{index:table2}}\label{\detokenize{index:table1}}
---
> \sphinxcaption{table caption}\label{\detokenize{index:id3}}\label{\detokenize{index:table2}}\label{\detokenize{index:table1}}
202c202
< Embedded standalone hyperlink reference: {\hyperref[\detokenize{index:section1}]{\sphinxcrossref{subsection}}}.
---
> Embedded standalone hyperlink reference: {\hyperref[\detokenize{index:section1}]{\sphinxcrossref{subsection}}}\phantomsection\label{\detokenize{index:id1}}.
|
NB @gmilde @jfbu: there is a change-in-behaviour for LaTeX build output as a result of a recent |
The first assertion failure is due to expected output being:
and the obtained output being with
I think what happens is that the "embedded standalone hyperlink reference" one finds in output at line 196 now is accompanied with an extra Embedded standalone hyperlink reference: {\hyperref[\detokenize{index:section1}]{\sphinxcrossref{subsection}}}\phantomsection\label{\detokenize{index:id1}}. So a new reference target is created on this branch + Docutils HEAD (at |
Ok, I used the exact same input but to produce html. The same <ul class="simple">
<li><p>Embedded standalone hyperlink reference: <a class="reference internal" href="#section1">subsection</a>.</p>
</li>
</ul> |
The used test is with the I have not tried to produce a minimal example, beyond checking that dropping the |
Coming back only to say that the phenomenon is triggered (with Python 3.13 I forgot to say I was using) by the current HEAD of Docutils on reading the commit message I wonder if this commit is related to my remark at #13576 (comment), so that maybe I am the one ultimately causing this branch to fail ;-) |
Thanks @jfbu - I also think there is a possibility that the relevant commit/SVN-rev may help enable us to resolve an issue I filed at #13383; I will begin checking/testing that possibility in a few moments. The identifier changes apparent in Sphinx's output do seem to be a side-effect of that specific In the example |
Nope; I think I had misdiagnosed that issue report as related to the |
One straightforward and backwards-compatible option to resolve the |
On second thoughts: it may be better to use a separate branch and PR for that, because we squash PRs on merge. I will reference the discussion from this thread, though. |
Correcting the link to the Docutils revision, as the one I copied pasted from the git message commit is broken: https://sourceforge.net/p/docutils/code/10151/ The HEAD there is now at revision 10153. |
Purpose
This changeset is intended to get the Sphinx unit tests for Python 3.14 passing again in pull requests. A recent test suite failure on Py3.14b2 can be found at: https://github.com/sphinx-doc/sphinx/actions/runs/15389148337/job/43294393665
References
./tests/roots/test-latex-labels/index.rst
change and/or why aphantomlabel
is created as a result ofdocutils
b25db649a5d073d76424e6434e12cdba53ed57e8
.