[Python-checkins] CVS: python/dist/src/Lib/test test_htmlparser.py,1.5,1.6

Fred L. Drake fdrake@users.sourceforge.net
Tue, 04 Sep 2001 09:26:05 -0700


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

Modified Files:
	test_htmlparser.py 
Log Message:
HTMLParser is allowed to be more strict than sgmllib, so let's not
change their basic behavior:  When parsing something that cannot possibly
be valid in either HTML or XHTML, raise an exception.


Index: test_htmlparser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_htmlparser.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_htmlparser.py	2001/09/04 15:13:04	1.5
--- test_htmlparser.py	2001/09/04 16:26:03	1.6
***************
*** 204,213 ****
  
      def test_illegal_declarations(self):
!         s = 'abc<!spacer type="block" height="25">def'
!         self._run_check(s, [
!             ("data", "abc"),
!             ("unknown decl", 'spacer type="block" height="25"'),
!             ("data", "def"),
!             ])
  
      def test_starttag_end_boundary(self):
--- 204,208 ----
  
      def test_illegal_declarations(self):
!         self._parse_error('<!spacer type="block" height="25">')
  
      def test_starttag_end_boundary(self):