Skip to content

Fix tests for Python 3.13.6+ compatibility.#22

Merged
icemac merged 1 commit intomasterfrom
fix-python-3.13+tests
Aug 14, 2025
Merged

Fix tests for Python 3.13.6+ compatibility.#22
icemac merged 1 commit intomasterfrom
fix-python-3.13+tests

Conversation

@icemac
Copy link
Copy Markdown
Member

@icemac icemac commented Aug 13, 2025

Python 3.13.6 changed the way <title> tags are parsed: If there is no end tag, the rest of document is handled as title content.
Source: python/cpython#135310

This change has also been backported to Python 3.12 but is not yet released.

Example of a breaking test: https://github.com/zopefoundation/groktoolkit/actions/runs/16882111176/job/47820322945?pr=102 (Sorry I was not able to reproduce it here in the repository but I also saw it locally on 3.13.6) – The difference is that groktoolkit already uses uv (which already has 3.13.6) and zope.tal still relies on the Python versions provided by GitHub Actions (which does not yet have it.)

Python 3.13.6 changed the way `<title>` tags are parsed: If there is no end tag,
the rest of document is handled as title content.
Source: python/cpython#135310

This change has also been backported to Python 3.12 but is not yet released.

Example of a breaking test: https://github.com/zopefoundation/groktoolkit/actions/runs/16882111176/job/47820322945?pr=102
(Sorry I was not able to reproduce it here in the repository but I also saw it locally on 3.13.6)
@icemac icemac requested a review from dataflake August 13, 2025 07:39
@icemac icemac self-assigned this Aug 13, 2025
@icemac icemac merged commit b85eb23 into master Aug 14, 2025
15 checks passed
@icemac icemac deleted the fix-python-3.13+tests branch August 14, 2025 07:09
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