diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-08-08 22:58:56 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-08-08 22:58:56 (GMT) |
commit | 14bd1c3b2e72498ac022161ddddcf9375c92572d (patch) | |
tree | 66c659468a75a8ebab422748735266511823e8e0 /Lib/test/test_xml_etree.py | |
parent | d62e6cabcadea472226af70c57c45f7983189632 (diff) | |
download | cpython-14bd1c3b2e72498ac022161ddddcf9375c92572d.zip cpython-14bd1c3b2e72498ac022161ddddcf9375c92572d.tar.gz cpython-14bd1c3b2e72498ac022161ddddcf9375c92572d.tar.bz2 |
Fix BytesWarning in test_xml_etree, introduced with r83851.
Diffstat (limited to 'Lib/test/test_xml_etree.py')
-rw-r--r-- | Lib/test/test_xml_etree.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py index 0dc400f..4c9f2e0 100644 --- a/Lib/test/test_xml_etree.py +++ b/Lib/test/test_xml_etree.py @@ -643,9 +643,9 @@ def parseliteral(): <html><body>text</body></html> >>> sequence = ["<html><body>", "text</bo", "dy></html>"] >>> element = ET.fromstringlist(sequence) - >>> print(ET.tostring(element)) + >>> ET.tostring(element) b'<html><body>text</body></html>' - >>> print(b"".join(ET.tostringlist(element))) + >>> b"".join(ET.tostringlist(element)) b'<html><body>text</body></html>' >>> ET.tostring(element, "ascii") b"<?xml version='1.0' encoding='ascii'?>\\n<html><body>text</body></html>" |