File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -1105,27 +1105,6 @@ def test_weird_chars_in_unquoted_attribute_values(self):
11051105 ('starttag' , 'form' ,
11061106 [('action' , 'bogus|&#()value' )])])
11071107
1108- def test_invalid_keyword_error_exception (self ):
1109- # bpo-34480: check that subclasses that define an
1110- # error method that raises an exception work
1111- class InvalidMarkupException (Exception ):
1112- pass
1113- class MyHTMLParser (html .parser .HTMLParser ):
1114- def error (self , message ):
1115- raise InvalidMarkupException (message )
1116- parser = MyHTMLParser ()
1117- with self .assertRaises (InvalidMarkupException ):
1118- parser .feed ('<![invalid>' )
1119-
1120- def test_invalid_keyword_error_pass (self ):
1121- # bpo-34480: check that subclasses that define an
1122- # error method that doesn't raise an exception work
1123- class MyHTMLParser (html .parser .HTMLParser ):
1124- def error (self , message ):
1125- pass
1126- parser = MyHTMLParser ()
1127- self .assertEqual (parser .feed ('<![invalid>' ), None )
1128-
11291108
11301109if __name__ == "__main__" :
11311110 unittest .main ()
You can’t perform that action at this time.
0 commit comments