From b62e8a8062ff81f0f5d80b25aa0fb6b2457c721c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 10 Oct 2007 22:48:24 +0000 Subject: Two changes that are definitely problem-free and avoid calling print() with a bytes instance (as this will soon print something differently). --- Lib/test/test_xml_etree.py | 5 ++--- Lib/test/test_xml_etree_c.py | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py index c8dd344..4788d3a 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 22d2662..86f1853 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 -- cgit v0.12