[Python-checkins] python/dist/src/Lib/test test_htmlparser.py,1.9,1.10 test_sgmllib.py,1.4,1.5

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
Fri, 14 Mar 2003 08:22:01 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv20740/test

Modified Files:
	test_htmlparser.py test_sgmllib.py 
Log Message:
Accept commas in unquoted attribute values.
This closes SF patch #669683.


Index: test_htmlparser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_htmlparser.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** test_htmlparser.py	23 Jul 2002 19:03:54 -0000	1.9
--- test_htmlparser.py	14 Mar 2003 16:21:56 -0000	1.10
***************
*** 198,201 ****
--- 198,205 ----
              ("starttag", "a", [("b", ""), ("c", "")]),
              ])
+         # Regression test for SF patch #669683.
+         self._run_check("<e a=rgb(1,2,3)>", [
+             ("starttag", "e", [("a", "rgb(1,2,3)")]),
+             ])
  
      def test_attr_entity_replacement(self):

Index: test_sgmllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_sgmllib.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_sgmllib.py	25 Sep 2002 16:29:17 -0000	1.4
--- test_sgmllib.py	14 Mar 2003 16:21:57 -0000	1.5
***************
*** 201,204 ****
--- 201,208 ----
              ("starttag", "a", [("b", ""), ("c", "")]),
              ])
+         # Regression test for SF patch #669683.
+         self.check_events("<e a=rgb(1,2,3)>", [
+             ("starttag", "e", [("a", "rgb(1,2,3)")]),
+             ])
  
      def test_attr_funky_names(self):