[Python-checkins] r46943 - python/trunk/Lib/test/test_sgmllib.py

fred.drake python-checkins at python.org
Wed Jun 14 07:04:48 CEST 2006


Author: fred.drake
Date: Wed Jun 14 07:04:47 2006
New Revision: 46943

Modified:
   python/trunk/Lib/test/test_sgmllib.py
Log:
add tests for two cases that are handled correctly in the current code,
but that SF patch 1504676 as written mis-handles


Modified: python/trunk/Lib/test/test_sgmllib.py
==============================================================================
--- python/trunk/Lib/test/test_sgmllib.py	(original)
+++ python/trunk/Lib/test/test_sgmllib.py	Wed Jun 14 07:04:47 2006
@@ -218,7 +218,9 @@
         """Substitution of entities and charrefs in attribute values"""
         # SF bug #1452246
         self.check_events("""<a b=&lt; c=&lt;&gt; d=&lt-&gt; e='&lt; '
-                                f="&xxx;" g='&#32;&#33;' h='&#500;' i='x?a=b&c=d;'>""",
+                                f="&xxx;" g='&#32;&#33;' h='&#500;'
+                                i='x?a=b&c=d;'
+                                j='&amp;#42;' k='&#38;#42;'>""",
             [("starttag", "a", [("b", "<"),
                                 ("c", "<>"),
                                 ("d", "&lt->"),
@@ -226,7 +228,10 @@
                                 ("f", "&xxx;"),
                                 ("g", " !"),
                                 ("h", "&#500;"),
-                                ("i", "x?a=b&c=d;"), ])])
+                                ("i", "x?a=b&c=d;"),
+                                ("j", "&#42;"),
+                                ("k", "&#42;"),
+                                ])])
 
     def test_attr_funky_names(self):
         self.check_events("""<a a.b='v' c:d=v e-f=v>""", [


More information about the Python-checkins mailing list