Skip to content

Commit 9069480

Browse files
committed
Remove outdated tests per discussion on the PR
1 parent 8ab85ab commit 9069480

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

Lib/test/test_htmlparser.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff 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

11301109
if __name__ == "__main__":
11311110
unittest.main()

0 commit comments

Comments
 (0)