From: Guido van Rossum Date: Wed, 10 Oct 2007 22:48:24 +0000 (+0000) Subject: Two changes that are definitely problem-free and avoid calling print() X-Git-Tag: v3.0a2~335 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b62e8a8062ff81f0f5d80b25aa0fb6b2457c721c;p=python Two changes that are definitely problem-free and avoid calling print() with a bytes instance (as this will soon print something differently). --- diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py index c8dd34412e..4788d3a045 100644 --- a/Lib/test/test_xml_etree.py +++ b/Lib/test/test_xml_etree.py @@ -183,9 +183,8 @@ def parseliteral(): text >>> print(ET.tostring(element)) text - >>> print(ET.tostring(element, "ascii")) - - text + >>> print(repr(ET.tostring(element, "ascii"))) + b'\ntext' >>> _, ids = ET.XMLID("text") >>> len(ids) 0 diff --git a/Lib/test/test_xml_etree_c.py b/Lib/test/test_xml_etree_c.py index 22d2662451..86f1853084 100644 --- a/Lib/test/test_xml_etree_c.py +++ b/Lib/test/test_xml_etree_c.py @@ -175,9 +175,8 @@ def parseliteral(): text >>> print(ET.tostring(element)) text - >>> print(ET.tostring(element, "ascii")) - - text + >>> print(repr(ET.tostring(element, "ascii"))) + b'\ntext' >>> _, ids = ET.XMLID("text") >>> len(ids) 0