add tests for two cases that are handled correctly in the current code,
but that SF patch 1504676 as written mis-handles
diff --git a/Lib/test/test_sgmllib.py b/Lib/test/test_sgmllib.py
index 2fe9300..ec417d0 100644
--- a/Lib/test/test_sgmllib.py
+++ b/Lib/test/test_sgmllib.py
@@ -218,7 +218,9 @@
"""Substitution of entities and charrefs in attribute values"""
# SF bug #1452246
self.check_events("""<a b=< c=<> d=<-> e='< '
- f="&xxx;" g=' !' h='Ǵ' i='x?a=b&c=d;'>""",
+ f="&xxx;" g=' !' h='Ǵ'
+ i='x?a=b&c=d;'
+ j='&#42;' k='&#42;'>""",
[("starttag", "a", [("b", "<"),
("c", "<>"),
("d", "<->"),
@@ -226,7 +228,10 @@
("f", "&xxx;"),
("g", " !"),
("h", "Ǵ"),
- ("i", "x?a=b&c=d;"), ])])
+ ("i", "x?a=b&c=d;"),
+ ("j", "*"),
+ ("k", "*"),
+ ])])
def test_attr_funky_names(self):
self.check_events("""<a a.b='v' c:d=v e-f=v>""", [