[Python-checkins] r83863 - python/branches/py3k/Lib/test/test_xml_etree.py

florent.xicluna python-checkins at python.org
Mon Aug 9 00:58:57 CEST 2010


Author: florent.xicluna
Date: Mon Aug  9 00:58:56 2010
New Revision: 83863

Log:
Fix BytesWarning in test_xml_etree, introduced with r83851.


Modified:
   python/branches/py3k/Lib/test/test_xml_etree.py

Modified: python/branches/py3k/Lib/test/test_xml_etree.py
==============================================================================
--- python/branches/py3k/Lib/test/test_xml_etree.py	(original)
+++ python/branches/py3k/Lib/test/test_xml_etree.py	Mon Aug  9 00:58:56 2010
@@ -643,9 +643,9 @@
     <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>"


More information about the Python-checkins mailing list