FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix xml writing bug introduced in #16388 by frobian21 · Pull Request #16713 · python/mypy · GitHub

Repository navigation

Fix xml writing bug introduced in #16388 - #16713

Merged
JelleZijlstra merged 1 commit into
python:masterfrom
frobian21:junit-fix
Jan 2, 2024
Merged

JelleZijlstra merged 1 commit into
python:masterfrom
frobian21:junit-fix

Conversation

Copy link
Copy Markdown
Contributor

#16388 introduced a bug where invalid xml could be produced by write_junit_xml, as special characters were no longer being escaped.

The fix is to revert the removal of from xml.sax.saxutils import escape and escape("\n".join(messages)) in the write_junit_xml function.

I've added a small test case which checks that the <, >, & are escaped correctly in the xml.

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

JelleZijlstra merged commit 4aba5ca into python:master Jan 2, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL