Skip to content

Fix JUnit XML escaping for supplementary Unicode#14489

Closed
Sean-Kenneth-Doherty wants to merge 1 commit into
pytest-dev:mainfrom
Sean-Kenneth-Doherty:fix-junitxml-supplementary-unicode
Closed

Fix JUnit XML escaping for supplementary Unicode#14489
Sean-Kenneth-Doherty wants to merge 1 commit into
pytest-dev:mainfrom
Sean-Kenneth-Doherty:fix-junitxml-supplementary-unicode

Conversation

@Sean-Kenneth-Doherty
Copy link
Copy Markdown

Summary

Fixes #14483.

Validation

  • uv run --extra dev pytest testing/test_junitxml.py -q
  • uv run --with ruff ruff check src/_pytest/junitxml.py testing/test_junitxml.py
  • uv run --with ruff ruff format --check src/_pytest/junitxml.py testing/test_junitxml.py
  • git diff --check
  • uv run python - <<PY ... behavior probe preserving test_😀_passes and test_𠀀

@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label May 17, 2026
@The-Compiler
Copy link
Copy Markdown
Member

Duplicate of #14484

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bin_xml_escape: supplementary plane characters (U+10000+) incorrectly escaped due to wrong unicode escape in regex

2 participants