[Zope3-checkins] SVN: Zope3/trunk/src/zope/pagetemplate/tests/util.py Now check_xml() output will be more helpful in case of unicode strings

Dmitry Vasiliev dima at hlabs.spb.ru
Fri May 6 10:02:43 EDT 2005


Log message for revision 30277:
  Now check_xml() output will be more helpful in case of unicode strings
  

Changed:
  U   Zope3/trunk/src/zope/pagetemplate/tests/util.py

-=-
Modified: Zope3/trunk/src/zope/pagetemplate/tests/util.py
===================================================================
--- Zope3/trunk/src/zope/pagetemplate/tests/util.py	2005-05-06 13:49:24 UTC (rev 30276)
+++ Zope3/trunk/src/zope/pagetemplate/tests/util.py	2005-05-06 14:02:43 UTC (rev 30277)
@@ -82,7 +82,7 @@
 def check_xml(s1, s2):
     s1 = normalize_xml(s1)
     s2 = normalize_xml(s2)
-    assert s1==s2, ("XML Output Changed:\n%s\n\n%s" % (s1, s2))
+    assert s1==s2, ("XML Output Changed:\n%r\n\n%r" % (s1, s2))
 
 def normalize_html(s):
     s = re.sub(r"[ \t]+", " ", s)



More information about the Zope3-Checkins mailing list