[ZPT] CVS: Packages/TAL/tests - test_htmlparser.py:1.16

Fred L. Drake" <fdrake@acm.org> Fred L. Drake" <fdrake@acm.org>
Tue, 4 Sep 2001 12:24:24 -0400


Update of /cvs-repository/Packages/TAL/tests
In directory cvs.zope.org:/tmp/cvs-serv8491/tests

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


=== Packages/TAL/tests/test_htmlparser.py 1.15 => 1.16 ===
 
     def check_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"),
-            ])
+        self._parse_error('<!spacer type="block" height="25">')
 
     def check_starttag_end_boundary(self):
         self._run_check("""<a b='<'>""", [("starttag", "a", [("b", "<")])])