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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b62e8a8062ff81f0f5d80b25aa0fb6b2457c721c;p=thirdparty%2FPython%2Fcpython.git 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 c8dd34412e93..4788d3a04549 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 22d266245165..86f18530843d 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