Skip to content

Fix tests for Python 3.15.0a5+#14399

Open
edgarrmondragon wants to merge 2 commits intosphinx-doc:masterfrom
edgarrmondragon:py3-15-0a5-plus
Open

Fix tests for Python 3.15.0a5+#14399
edgarrmondragon wants to merge 2 commits intosphinx-doc:masterfrom
edgarrmondragon:py3-15-0a5-plus

Conversation

@edgarrmondragon
Copy link
Copy Markdown

@edgarrmondragon edgarrmondragon commented Apr 16, 2026

Purpose

Fixes this exception in the tests:

TypeError: expected string or bytes-like object, got '_TranslationProxy'

and

FAILED tests/test_builders/test_build_linkcheck.py::test_too_many_requests_retry_after_without_header - assert '\x1b[90m127.0.0.1 - - []\x1b[0m "HEAD \x1b[36m/\x1b[0m HTTP/1.1" \x1b[33m429 \x1b[90m-\x1b[0m\n\x1b[90m127.0.0.1 - - []\x1b[0m "HEAD \x1b[36m/\x1b[0m HTTP/1.1" \x1b[32m200 \x1b[90m-\x1b[0m\n' == '127.0.0.1 - - [] "HEAD / HTTP/1.1" 429 -\n127.0.0.1 - - [] "HEAD / HTTP/1.1" 200 -\n'

The outstanding failures are unrelated:

  • Lint/type checks (ty)
  • Testing with the latest Docutils from source
  • LaTeX (same as the one above)

References

Signed-off-by: Edgar Ramírez Mondragón <edgarrm358@gmail.com>
@gmilde
Copy link
Copy Markdown
Contributor

gmilde commented Apr 17, 2026

The outstanding failures are unrelated:
[...]
Testing with the latest Docutils from source
LaTeX (same as the one above)

I work on a fix for Docutils for the changed ID in tests/test_intl/test_intl.py:1559:.
For the LaTeX writer issue, see issue #14402.

…r.log_message`

Signed-off-by: Edgar Ramírez Mondragón <edgarrm358@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants