This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: struni: test_xml_etree.py
Type: Stage:
Components: Tests Versions: Python 3.0
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: jcgregorio, loewis
Priority: normal Keywords: patch

Created on 2007-07-27 21:03 by jcgregorio, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_xml_etree.patch jcgregorio, 2007-07-27 21:03 struni: patches to ElementTree.py
Messages (2)
msg52957 - (view) Author: Joe Gregorio (jcgregorio) * Date: 2007-07-27 21:03
Fixes to ElementTree.py so that the unit tests now pass on the struni branch. 

When writing to a file the output file is now opened in binary mode and the text is converted to bytes before writing. 

In several cases, like _escape_attrib, and _escape_cdata, the encoding was removed and pull out to be as close
to the write() as possible.


msg52958 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2007-07-28 11:41
Thanks for the patch. Committed as r56603
History
Date User Action Args
2022-04-11 14:56:25adminsetgithub: 45250
2008-01-06 22:29:45adminsetkeywords: - py3k
versions: + Python 3.0
2007-07-27 21:03:22jcgregoriocreate