Skip to content

Conversation

@ato
Copy link
Collaborator

@ato ato commented Nov 6, 2025

Description

This updates one of the test_html_rewriter doctests so it matches the output of the latest Python versions.

Motivation and Context

In Python 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.6 and 3.14.0 HtmlParser was changed as a security update to more correctly follow the HTML5 standard. This changed the output of one of our tests. The output change doesn't appear to have a meaningful impact in this case as browsers treat it as a comment either way.

Fixes #969

Types of changes

  • Replay fix (fixes a replay specific issue)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added or updated tests to cover my changes.
  • All new and existing tests passed.

Still seeing some intermittent test failures but they're in test_agg_select_mem_unrewrite_headers which appears to be making requests to remote servers.

In Python 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.6 and 3.14.0  HtmlParser was changed as a security update to more correctly follow the HTML5 standard. This changed the output of one of our tests. The output change doesn't appear to have a meaningful impact in this case as browsers treat it as a comment either way, so this just updates the test to match the output of the latest Python versions.

Fixes #969
@tw4l tw4l merged commit 82e83af into main Nov 6, 2025
19 of 28 checks passed
@tw4l tw4l deleted the python-htmlparser-update branch November 6, 2025 15:23
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.

test_html_rewriter broken on Python 3.11.14

3 participants